diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index ccfe1b705..3ef03d6c9 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <sys/mman.h> | 30 | #include <sys/mman.h> |
31 | #include <sys/socket.h> | 31 | #include <sys/socket.h> |
32 | #include <sys/stat.h> | 32 | #include <sys/stat.h> |
33 | #include <sys/statfs.h> | ||
34 | #include <sys/time.h> | 33 | #include <sys/time.h> |
35 | #include <sys/types.h> | 34 | #include <sys/types.h> |
36 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
@@ -49,6 +48,10 @@ | |||
49 | #include <mntent.h> | 48 | #include <mntent.h> |
50 | #endif | 49 | #endif |
51 | 50 | ||
51 | #ifdef HAVE_SYS_STATFS_H | ||
52 | #include <sys/statfs.h> | ||
53 | #endif | ||
54 | |||
52 | #if ENABLE_SELINUX | 55 | #if ENABLE_SELINUX |
53 | #include <selinux/selinux.h> | 56 | #include <selinux/selinux.h> |
54 | #include <selinux/context.h> | 57 | #include <selinux/context.h> |
@@ -311,8 +314,12 @@ struct BUG_too_small { | |||
311 | | AF_INET | 314 | | AF_INET |
312 | | AF_INET6 | 315 | | AF_INET6 |
313 | | AF_UNIX | 316 | | AF_UNIX |
317 | #ifdef AF_PACKET | ||
314 | | AF_PACKET | 318 | | AF_PACKET |
319 | #endif | ||
320 | #ifdef AF_NETLINK | ||
315 | | AF_NETLINK | 321 | | AF_NETLINK |
322 | #endif | ||
316 | /* | AF_DECnet */ | 323 | /* | AF_DECnet */ |
317 | /* | AF_IPX */ | 324 | /* | AF_IPX */ |
318 | ) <= 127 ? 1 : -1]; | 325 | ) <= 127 ? 1 : -1]; |
@@ -807,8 +814,10 @@ extern void run_applet_and_exit(const char *name, char **argv); | |||
807 | extern void run_applet_no_and_exit(int a, char **argv) ATTRIBUTE_NORETURN; | 814 | extern void run_applet_no_and_exit(int a, char **argv) ATTRIBUTE_NORETURN; |
808 | #endif | 815 | #endif |
809 | 816 | ||
817 | #ifdef HAVE_MNTENT_H | ||
810 | extern int match_fstype(const struct mntent *mt, const char *fstypes); | 818 | extern int match_fstype(const struct mntent *mt, const char *fstypes); |
811 | extern struct mntent *find_mount_point(const char *name, const char *table); | 819 | extern struct mntent *find_mount_point(const char *name, const char *table); |
820 | #endif | ||
812 | extern void erase_mtab(const char * name); | 821 | extern void erase_mtab(const char * name); |
813 | extern unsigned int tty_baud_to_value(speed_t speed); | 822 | extern unsigned int tty_baud_to_value(speed_t speed); |
814 | extern speed_t tty_value_to_baud(unsigned int value); | 823 | extern speed_t tty_value_to_baud(unsigned int value); |