From 697c17a2989013d8b286e0c8fb2066c4b5fd5142 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Mon, 4 Dec 2006 08:16:47 +0000 Subject: [PATCH] [__NetBSD__]: Don't define `unix'. (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of `#ifdef unix'. --- src/fileio.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index d63828ba974..50c5a40e6b2 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3541,11 +3541,7 @@ Use the current time if TIME is nil. TIME is in the format of 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 @@ DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "", 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 @@ A non-nil value may result in data loss! */); defsubr (&Sread_file_name); defsubr (&Snext_read_file_uses_dialog_p); -#ifdef unix +#ifdef HAVE_SYNC defsubr (&Sunix_sync); #endif } -- 2.39.2