(Fwrite_region): Use HAVE_FSYNC.
* s-aix3-2.h (HAVE_FSYNC): Define.
#include <sys/time.h>
#endif
+#ifndef USG
+#ifndef VMS
+#ifndef BSD4_1
+#define HAVE_FSYNC
+#endif
+#endif
+#endif
+
#include "lisp.h"
#include "intervals.h"
#include "buffer.h"
immediate_quit = 0;
-#ifndef USG
-#ifndef VMS
-#ifndef BSD4_1
+#ifdef HAVE_FSYNC
/* Note fsync appears to change the modtime on BSD4.2 (both vax and sun).
Disk full in NFS may be reported here. */
if (fsync (desc) < 0)
failure = 1, save_errno = errno;
-#endif
-#endif
#endif
/* Spurious "file has changed on disk" warnings have been
#define HAVE_ALLOCA
#undef rindex
#undef index
+
+#define HAVE_FSYNC