diff options
author | Denys Vlasenko | 2009-07-05 03:34:12 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-07-05 03:34:12 +0200 |
commit | 9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a (patch) | |
tree | 65a7b5ebb093903fd030aecda6ee204660d458d4 /include/libbb.h | |
parent | b22bbfffec182997827b0a71eeb93ddafbde602c (diff) | |
download | busybox-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.zip busybox-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.tar.gz |
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 77674f8..835beb2 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -29,6 +29,10 @@ #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/socket.h> +#if defined __FreeBSD__ +#include <netinet/in.h> +#include <arpa/inet.h> +#endif #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> @@ -86,7 +90,9 @@ int klogctl(int type, char *b, int len); /* This is declared here rather than #including <libgen.h> in order to avoid * confusing the two versions of basename. See the dirname/basename man page * for details. */ +#if !defined __FreeBSD__ char *dirname(char *path); +#endif /* Include our own copy of struct sysinfo to avoid binary compatibility * problems with Linux 2.4, which changed things. Grumble, grumble. */ struct sysinfo { |