#endif
#ifdef __APPLE__
-# define SYSTEM_VARIANT "MacOSX"
+# define SYSTEM_VARIANT "OS X"
#endif
#ifdef __bsdi__ /* works on bsdi 3.0 */
# define EMULATE_TCSETPGRP
#endif
-/* In Darwin, setsid doesn't work in vforked processes,
- so force the use of fork instead. */
#ifdef __APPLE__
+ /* In Darwin, setsid doesn't work in vforked processes, so force
+ the use of fork instead. */
# undef UX_vfork
# define UX_vfork fork
+ /* Also, although OS X binds the symbol fdatasync in the C library,
+ there's no header file or man page, and the system call appears
+ to have a different argument structure. */
+# undef HAVE_FDATASYNC
+# undef UX_fdatasync
#endif
\f
#ifdef HAVE_SIGACTION