[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module 'fbufmode'
From: |
Bruno Haible |
Subject: |
Re: new module 'fbufmode' |
Date: |
Mon, 23 Apr 2007 10:01:28 +0200 |
User-agent: |
KMail/1.5.4 |
This makes it compile and work on Solaris/SPARC64.
2007-04-23 Bruno Haible <address@hidden>
* lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
*** lib/fbufmode.c 14 Apr 2007 00:20:08 -0000 1.1
--- lib/fbufmode.c 23 Apr 2007 07:58:40 -0000
***************
*** 55,63 ****
--- 55,67 ----
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