diff src/fileio.c @ 74398:48c50a37cc14

[__NetBSD__]: Don't define `unix'. (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of `#ifdef unix'.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Mon, 04 Dec 2006 08:16:47 +0000
parents cb533833bfb7
children 9354f251fbae f1d13e615070
line wrap: on
line diff
--- a/src/fileio.c	Mon Dec 04 08:08:06 2006 +0000
+++ b/src/fileio.c	Mon Dec 04 08:16:47 2006 +0000
@@ -3541,11 +3541,7 @@
   return Qt;
 }
 
-#ifdef __NetBSD__
-#define unix 42
-#endif
-
-#ifdef unix
+#ifdef HAVE_SYNC
 DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "",
        doc: /* Tell Unix to finish all pending disk updates.  */)
      ()
@@ -3554,7 +3550,7 @@
   return Qnil;
 }
 
-#endif /* unix */
+#endif /* HAVE_SYNC */
 
 DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0,
        doc: /* Return t if file FILE1 is newer than file FILE2.
@@ -6793,7 +6789,7 @@
   defsubr (&Sread_file_name);
   defsubr (&Snext_read_file_uses_dialog_p);
 
-#ifdef unix
+#ifdef HAVE_SYNC
   defsubr (&Sunix_sync);
 #endif
 }