diff src/s/gnu-linux.h @ 98455:876b289a899e

* gmalloc.c (__sbrk): Also define for uClibc. * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition for uClibc.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 02 Oct 2008 02:58:01 +0000
parents 3866542dcfee
children dcc7f5970d5c
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Thu Oct 02 00:49:49 2008 +0000
+++ b/src/s/gnu-linux.h	Thu Oct 02 02:58:01 2008 +0000
@@ -156,11 +156,15 @@
 /* new C libio names */
 #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
   ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
-#else /* !_IO_STDIO_H */
+#elif defined (__UCLIBC__)
+/* using the uClibc library */
+#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
+  ((FILE)->__bufpos - (FILE)->__bufstart)
+#else /* !_IO_STDIO_H && ! __UCLIBC__ */
 /* old C++ iostream names */
 #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
   ((FILE)->_pptr - (FILE)->_pbase)
-#endif /* !_IO_STDIO_H */
+#endif /* !_IO_STDIO_H && ! __UCLIBC__ */
 #endif /* emacs */
 
 /* Ask GCC where to find libgcc.a.  */