aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/platform.h b/include/platform.h
index 51add6c0f..d7389f1aa 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -212,7 +212,15 @@ typedef unsigned smalluint;
212 */ 212 */
213#if defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9 && \ 213#if defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9 && \
214 __UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__ 214 __UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__
215#define BB_NOMMU 215#define BB_MMU 0
216#define BB_NOMMU 1
217#define USE_FOR_NOMMU(...) __VA_ARGS__
218#define USE_FOR_MMU(...)
219#else
220#define BB_MMU 1
221/* BB_NOMMU is not defined in this case! */
222#define USE_FOR_NOMMU(...)
223#define USE_FOR_MMU(...) __VA_ARGS__
216#endif 224#endif
217 225
218/* Platforms that haven't got dprintf need to implement fdprintf() in 226/* Platforms that haven't got dprintf need to implement fdprintf() in
@@ -232,7 +240,7 @@ static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) {
232} 240}
233#endif 241#endif
234 242
235/* Don't use lchown with glibc older than 2.1.x ... uC-libc lacks it */ 243/* Don't use lchown with glibc older than 2.1.x ... uClibc lacks it */
236#if (defined __GLIBC__ && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 1) || \ 244#if (defined __GLIBC__ && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 1) || \
237 defined __UC_LIBC__ 245 defined __UC_LIBC__
238# define lchown chown 246# define lchown chown