From: Bruno Haible Date: Mon, 23 Apr 2007 08:01:35 +0000 (+0000) Subject: Port to Solaris/SPARC64. X-Git-Tag: cvs-readonly~515 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=80dce92274d417281d5339e4dc9de76224f74e81;p=gnulib.git Port to Solaris/SPARC64. --- diff --git a/ChangeLog b/ChangeLog index dd4ebf622..0d906d844 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-04-23 Bruno Haible + * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64. + +2007-04-23 Bruno Haible + * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR. 2007-04-23 Bruno Haible diff --git a/lib/fbufmode.c b/lib/fbufmode.c index 3090d8f9c..6df6a2005 100644 --- a/lib/fbufmode.c +++ b/lib/fbufmode.c @@ -55,9 +55,13 @@ fbufmode (FILE *fp) if (fp->_flag & _IOLBF) return _IOLBF; # endif +# if defined __sun && defined __sparc && defined _LP64 /* Solaris/SPARC 64-bit */ + return ((unsigned int *) fp) [9] & (_IONBF | _IOFBF); +# else if (fp->_flag & _IONBF) return _IONBF; return _IOFBF; +# endif #else #error "Please port gnulib fbufmode.c to your platform! Look at the setvbuf implementation." #endif