diff options
Diffstat (limited to 'src/s/gnu-linux.h')
| -rw-r--r-- | src/s/gnu-linux.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index bd0acd36302..2e28b81f7d0 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -156,11 +156,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 156 | /* new C libio names */ | 156 | /* new C libio names */ |
| 157 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ | 157 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ |
| 158 | ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) | 158 | ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) |
| 159 | #else /* !_IO_STDIO_H */ | 159 | #elif defined (__UCLIBC__) |
| 160 | /* using the uClibc library */ | ||
| 161 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ | ||
| 162 | ((FILE)->__bufpos - (FILE)->__bufstart) | ||
| 163 | #else /* !_IO_STDIO_H && ! __UCLIBC__ */ | ||
| 160 | /* old C++ iostream names */ | 164 | /* old C++ iostream names */ |
| 161 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ | 165 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ |
| 162 | ((FILE)->_pptr - (FILE)->_pbase) | 166 | ((FILE)->_pptr - (FILE)->_pbase) |
| 163 | #endif /* !_IO_STDIO_H */ | 167 | #endif /* !_IO_STDIO_H && ! __UCLIBC__ */ |
| 164 | #endif /* emacs */ | 168 | #endif /* emacs */ |
| 165 | 169 | ||
| 166 | /* Ask GCC where to find libgcc.a. */ | 170 | /* Ask GCC where to find libgcc.a. */ |