Bug#577577: O_FSYNC used but not defined on some archs
Package: libc6-dev
Version: 2.10.2-6
Severity: important
On some archs (hppa and sparc at least), there is no O_FSYNC define in
bits/fcntl.h. However, even on these archs, we have this block of defines:
#ifdef __USE_BSD
# define FAPPEND O_APPEND
# define FFSYNC O_FSYNC
# define FASYNC O_ASYNC
# define FNONBLOCK O_NONBLOCK
# define FNDELAY O_NDELAY
#endif /* Use BSD. */
This makes code with an #ifdef FFSYNC do the wrong thing, as FFSYNC
gets literally defined to the string "O_FSYNC".
This results in a FTBFS for libexplian, see #559959.
(Creating a new bug instead of reassigning because, presumably, that
bug could also be worked around in libexplain).
Reply to: