diff lib/fbufmode.c @ 9981:e3d6988a9347

Add tentative support for DragonFly BSD.
author Bruno Haible <bruno@clisp.org>
date Sat, 26 Apr 2008 18:58:00 +0200 (2008-04-26)
parents 2c1ba629f5d5
children 5c7a68d31801
line wrap: on
line diff
--- a/lib/fbufmode.c
+++ b/lib/fbufmode.c
@@ -42,10 +42,10 @@
   if (fp->_flags & _IO_UNBUFFERED)
     return _IONBF;
   return _IOFBF;
-#elif defined __sferror             /* FreeBSD, NetBSD, OpenBSD, MacOS X, Cygwin */
-  if (fp->_flags & __SLBF)
+#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
+  if (fp_->_flags & __SLBF)
     return _IOLBF;
-  if (fp->_flags & __SNBF)
+  if (fp_->_flags & __SNBF)
     return _IONBF;
   return _IOFBF;
 #elif defined __EMX__               /* emx+gcc */