Patch from mathuria, compatability with solaris
This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)
No binary (build failed)
—
(log yok)
| @@ -35,7 +35,7 @@ | |
| static long uid; | |
| static long gid; | |
| - | static int (*chown_func)(const char *, __uid_t, __gid_t) = chown; |
| + | static int (*chown_func)(const char *, uid_t, gid_t) = chown; |
| static int fileAction(const char *fileName, struct stat *statbuf, void* junk) | |
| { | |
| @@ -95,7 +95,9 @@ extern const struct BB_applet applets[]; | |
| /* Bit map related macros -- libc5 doens't provide these... sigh. */ | |
| #ifndef setbit | |
| + | #ifndef NBBY |
| #define NBBY CHAR_BIT | |
| + | #endif |
| #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) | |
| #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) | |
| #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) | |
| @@ -55,7 +55,10 @@ | |
| #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__) | |
| /* libc5 doesn't define socklen_t */ | |
| + | #ifndef _SOCKLEN_T |
| + | #define _SOCKLEN_T |
| typedef unsigned int socklen_t; | |
| + | #endif |
| /* libc5 doesn't implement BSD 4.4 daemon() */ | |
| extern int daemon (int nochdir, int noclose); | |
| /* libc5 doesn't implement strtok_r */ | |