aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-31 10:04:03 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-31 10:04:03 +0000
commitd3ff731ada83714a84a18bdf36a0025f5ea94a84 (patch)
treec1f8e40d4ff2d42d9fe8bb429873a31b6afc11d2
parentba942c06c640bf1da037c5493938459d607728b3 (diff)
downloadbusybox-w32-d3ff731ada83714a84a18bdf36a0025f5ea94a84.tar.gz
busybox-w32-d3ff731ada83714a84a18bdf36a0025f5ea94a84.tar.bz2
busybox-w32-d3ff731ada83714a84a18bdf36a0025f5ea94a84.zip
- conditionally define BB_NOMMU
git-svn-id: svn://busybox.net/trunk/busybox@15243 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--include/platform.h18
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