Add O_FSYNC define to sparc just like other platforms.

This commit is contained in:
David S. Miller 2012-02-16 14:56:54 -08:00
parent af1dd5d680
commit fb59b3a4f5
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,9 @@
2012-02-16 David S. Miller <davem@davemloft.net>
[BZ #11494]
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
* sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
* sysdeps/sparc/crti.S: New file.
* sysdeps/sparc/crtn.S: New file.

View File

@ -39,6 +39,7 @@
#define O_TRUNC 0x0400 /* not fcntl */
#define O_EXCL 0x0800 /* not fcntl */
#define O_SYNC 0x802000
#define O_FSYNC O_SYNC
#define O_NONBLOCK 0x4000
#define O_NDELAY (0x0004 | O_NONBLOCK)
#define O_NOCTTY 0x8000 /* not fcntl */