sysdeps/unix/sysv/linux/sparc/bits/fcntl.h and ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h contain the line # define FFSYNC O_FSYNC O_FSYNC is not defined on either architecture, though O_SYNC is.
Created attachment 4721 [details] sparc proposed fix Use O_SYNC instead of O_FSYNC
Created attachment 4722 [details] hppa proposed fix Use O_SYNC instead of O_FSYNC.
Created attachment 4723 [details] hppa proposed fix Use O_SYNC instead of O_FSYNC.
Created attachment 4724 [details] sparc proposed fix Use O_SYNC instead of O_FSYNC
*** Bug 11495 has been marked as a duplicate of this bug. ***
This isn't the correct fix. Like other platforms, sparc and hppa should provide the compatability define: #define O_FSYNC O_SYNC
(In reply to comment #6) > This isn't the correct fix. > > Like other platforms, sparc and hppa should provide the > compatability define: > > #define O_FSYNC O_SYNC I agree. On 2009-11-29 hppa defined O_FSYNC to be an alias for O_SYNC and thus fixed this issue. http://sourceware.org/git/?p=glibc-ports.git;a=commitdiff;h=b8eca7ff8ca1cbc3e1d6bec2fed4213863fa441b Given that Dave just committed his fix and hppa's fix has been in for several years I'm marking this issue fixed.