blob: b2d7aeb502a221cac39b85feaa1d80439b08f11a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
*** diskfile.C.orig Thu Apr 17 14:57:15 1997
--- diskfile.C Thu Apr 17 15:06:28 1997
***************
*** 50,56 ****
#if defined(linux)
extern "C" void setbuffer(FILE*, char*, int);
#else
! #if !defined( sgi ) && !defined( sun )
extern "C" int setbuffer(FILE*, char*, int);
#endif
#endif
--- 50,56 ----
#if defined(linux)
extern "C" void setbuffer(FILE*, char*, int);
#else
! #if !defined( sgi ) && !defined( sun ) && !defined( __FreeBSD__ )
extern "C" int setbuffer(FILE*, char*, int);
#endif
#endif
***************
*** 193,198 ****
--- 193,203 ----
rw &= ~01;
if (fp->_flags & _IO_NO_WRITES)
rw &= ~02;
+ #elif defined(__FreeBSD__)
+ if (fp->_flags & (__SRD|__SRW))
+ rw |= 01;
+ if (fp->_flags & (__SWR|__SRW|__SAPP))
+ rw |= 02;
#else
if (fp->_flag & (_IOREAD|_IORW))
rw |= 01;
|