diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 77674f8a2..835beb20c 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -29,6 +29,10 @@ | |||
29 | #include <sys/ioctl.h> | 29 | #include <sys/ioctl.h> |
30 | #include <sys/mman.h> | 30 | #include <sys/mman.h> |
31 | #include <sys/socket.h> | 31 | #include <sys/socket.h> |
32 | #if defined __FreeBSD__ | ||
33 | #include <netinet/in.h> | ||
34 | #include <arpa/inet.h> | ||
35 | #endif | ||
32 | #include <sys/stat.h> | 36 | #include <sys/stat.h> |
33 | #include <sys/time.h> | 37 | #include <sys/time.h> |
34 | #include <sys/types.h> | 38 | #include <sys/types.h> |
@@ -86,7 +90,9 @@ int klogctl(int type, char *b, int len); | |||
86 | /* This is declared here rather than #including <libgen.h> in order to avoid | 90 | /* This is declared here rather than #including <libgen.h> in order to avoid |
87 | * confusing the two versions of basename. See the dirname/basename man page | 91 | * confusing the two versions of basename. See the dirname/basename man page |
88 | * for details. */ | 92 | * for details. */ |
93 | #if !defined __FreeBSD__ | ||
89 | char *dirname(char *path); | 94 | char *dirname(char *path); |
95 | #endif | ||
90 | /* Include our own copy of struct sysinfo to avoid binary compatibility | 96 | /* Include our own copy of struct sysinfo to avoid binary compatibility |
91 | * problems with Linux 2.4, which changed things. Grumble, grumble. */ | 97 | * problems with Linux 2.4, which changed things. Grumble, grumble. */ |
92 | struct sysinfo { | 98 | struct sysinfo { |