diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-03 22:16:40 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-10-03 22:16:40 +0200 |
commit | e0cbd8d3ad576fda177792c4c3ad75a3823f61ee (patch) | |
tree | 37b5a8048e1c47230dcf8d3b0043092e40093591 /lib/fbufmode.c | |
parent | 7bfb1880ea713532edaaed3386bc0a2ba45a28a6 (diff) | |
download | gnulib-e0cbd8d3ad576fda177792c4c3ad75a3823f61ee.tar.gz |
Add support for QNX (untested).
Diffstat (limited to 'lib/fbufmode.c')
-rw-r--r-- | lib/fbufmode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/fbufmode.c b/lib/fbufmode.c index 1c66a53784..ee6b20789b 100644 --- a/lib/fbufmode.c +++ b/lib/fbufmode.c @@ -75,6 +75,12 @@ fbufmode (FILE *fp) if (fp->__modeflags & __FLAG_NBF) return _IONBF; return _IOFBF; +#elif defined __QNX__ /* QNX */ + if (fp->_Mode & _MLBF) + return _IOLBF; + if (fp->_Mode & _MNBF) + return _IONBF; + return _IOFBF; #else #error "Please port gnulib fbufmode.c to your platform! Look at the setvbuf implementation." #endif |