diff --git a/src/helpers.h b/src/helpers.h index 0de7bc5c..a23d5c27 100644 --- a/src/helpers.h +++ b/src/helpers.h @@ -25,6 +25,11 @@ #ifndef FINIT_HELPERS_H_ #define FINIT_HELPERS_H_ +#include "config.h" + +#ifdef HAVE_FSTAB_H +#include +#endif #include #include /* sched_yield() */ #include @@ -47,7 +52,7 @@ typedef enum { PROGRESS_MODERN, } pstyle_t; -#ifndef HAVE_GETFSENT +#ifndef HAVE_FSTAB_H struct fstab { char *fs_spec; /* block device name */ char *fs_file; /* mount point */ @@ -61,7 +66,7 @@ struct fstab { int setfsent (void); void endfsent (void); struct fstab *getfsent (void); -#endif /* HAVE_GETFSENT */ +#endif /* HAVE_FSTAB_H */ char *console (void); void console_init (void);