diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 03:34:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 03:34:12 +0200 |
commit | 9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a (patch) | |
tree | 65a7b5ebb093903fd030aecda6ee204660d458d4 /include/libbb.h | |
parent | b22bbfffec182997827b0a71eeb93ddafbde602c (diff) | |
download | busybox-w32-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.tar.gz busybox-w32-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.tar.bz2 busybox-w32-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.zip |
Patches to enable FreeBSD build
platform.h: fix wrong check for endianness, fix lchown
aliasing to chown on uclibc.
Code seems to not be affected in my testing.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 { |