diff options
| author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-18 22:32:45 +0000 |
|---|---|---|
| committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-18 22:32:45 +0000 |
| commit | 3693ee3e722ac89fd4f01dbcf3ece7fc909b3799 (patch) | |
| tree | 2d03681bc35891414026aa56eeed0fbc29530124 /include | |
| parent | 89651f1e21a6dace38a259f4f63f560ad36de806 (diff) | |
| download | busybox-w32-3693ee3e722ac89fd4f01dbcf3ece7fc909b3799.tar.gz busybox-w32-3693ee3e722ac89fd4f01dbcf3ece7fc909b3799.tar.bz2 busybox-w32-3693ee3e722ac89fd4f01dbcf3ece7fc909b3799.zip | |
xfuncs.c: dietlibc actually HAS fdprintf!
platform.h: define strchrnul for dietlibc
ash: stop using few non-standard functions
git-svn-id: svn://busybox.net/trunk/busybox@16998 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -rw-r--r-- | include/platform.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/platform.h b/include/platform.h index 860143f7f..1cc978288 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -193,9 +193,18 @@ typedef unsigned long long int uintmax_t; | |||
| 193 | /* Platforms that haven't got dprintf need to implement fdprintf() in | 193 | /* Platforms that haven't got dprintf need to implement fdprintf() in |
| 194 | * libbb. This would require a platform.c. It's not going to be cleaned | 194 | * libbb. This would require a platform.c. It's not going to be cleaned |
| 195 | * out of the tree, so stop saying it should be. */ | 195 | * out of the tree, so stop saying it should be. */ |
| 196 | #if !defined(__dietlibc__) | ||
| 197 | /* Needed for: glibc */ | ||
| 198 | /* Not needed for: dietlibc */ | ||
| 199 | /* Others: ?? (add as needed) */ | ||
| 196 | #define fdprintf dprintf | 200 | #define fdprintf dprintf |
| 197 | #ifdef __dietlibc__ | 201 | #endif |
| 198 | int dprintf(int fd, const char *format, ...); | 202 | |
| 203 | #if defined(__dietlibc__) | ||
| 204 | static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) { | ||
| 205 | while (*s && *s != c) ++s; | ||
| 206 | return (char*)s; | ||
| 207 | } | ||
| 199 | #endif | 208 | #endif |
| 200 | 209 | ||
| 201 | /* Don't use lchown with glibc older than 2.1.x ... uC-libc lacks it */ | 210 | /* Don't use lchown with glibc older than 2.1.x ... uC-libc lacks it */ |
