diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/platform.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/platform.h b/include/platform.h index 1847bc223..49797de2a 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -197,7 +197,19 @@ typedef unsigned long long int uintmax_t; | |||
| 197 | #define PRIu32 "u" | 197 | #define PRIu32 "u" |
| 198 | #endif | 198 | #endif |
| 199 | 199 | ||
| 200 | // Need to implement fdprintf for platforms that haven't got dprintf. | 200 | /* uclibc does not implement daemon for no-mmu systems. |
| 201 | * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. | ||
| 202 | * For earlier versions there is no reliable way to check if we are building | ||
| 203 | * for a mmu-less system; the user should pass CFLAGS_EXTRA="-DBB_NOMMU" | ||
| 204 | * on his own. | ||
| 205 | */ | ||
| 206 | #if defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9 && \ | ||
| 207 | __UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__ | ||
| 208 | #define BB_NOMMU | ||
| 209 | #endif | ||
| 210 | |||
| 211 | /* Need to implement fdprintf for platforms that haven't got dprintf. */ | ||
| 212 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ | ||
| 201 | #define fdprintf dprintf | 213 | #define fdprintf dprintf |
| 202 | 214 | ||
| 203 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ | 215 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ |
| @@ -214,9 +226,7 @@ typedef unsigned long long int uintmax_t; | |||
| 214 | #define bb_setpgrp setpgrp() | 226 | #define bb_setpgrp setpgrp() |
| 215 | #endif | 227 | #endif |
| 216 | 228 | ||
| 217 | // I have no idea what platform this was for since aldot didn't say, but | 229 | /* This is needed on some non linux unices like Tru64 */ |
| 218 | // it belongs here since Linux doesn't need it. | ||
| 219 | |||
| 220 | #if !defined ADJ_OFFSET_SINGLESHOT && defined MOD_CLKA && defined MOD_OFFSET | 230 | #if !defined ADJ_OFFSET_SINGLESHOT && defined MOD_CLKA && defined MOD_OFFSET |
| 221 | #define ADJ_OFFSET_SINGLESHOT (MOD_CLKA | MOD_OFFSET) | 231 | #define ADJ_OFFSET_SINGLESHOT (MOD_CLKA | MOD_OFFSET) |
| 222 | #endif | 232 | #endif |
