diff options
| author | YAMAMOTO Mitsuharu | 2006-12-04 08:16:47 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-12-04 08:16:47 +0000 |
| commit | 697c17a2989013d8b286e0c8fb2066c4b5fd5142 (patch) | |
| tree | 671a4951984d7b7c46e96a82fc65fbb846b4e68c /src/fileio.c | |
| parent | 9bbceb74b4d1ac225fd9a2292d287810a6c90316 (diff) | |
| download | emacs-697c17a2989013d8b286e0c8fb2066c4b5fd5142.tar.gz emacs-697c17a2989013d8b286e0c8fb2066c4b5fd5142.zip | |
[__NetBSD__]: Don't define `unix'.
(Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
`#ifdef unix'.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 10 |
1 files 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 | |||
| 3541 | return Qt; | 3541 | return Qt; |
| 3542 | } | 3542 | } |
| 3543 | 3543 | ||
| 3544 | #ifdef __NetBSD__ | 3544 | #ifdef HAVE_SYNC |
| 3545 | #define unix 42 | ||
| 3546 | #endif | ||
| 3547 | |||
| 3548 | #ifdef unix | ||
| 3549 | DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "", | 3545 | DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "", |
| 3550 | doc: /* Tell Unix to finish all pending disk updates. */) | 3546 | doc: /* Tell Unix to finish all pending disk updates. */) |
| 3551 | () | 3547 | () |
| @@ -3554,7 +3550,7 @@ DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "", | |||
| 3554 | return Qnil; | 3550 | return Qnil; |
| 3555 | } | 3551 | } |
| 3556 | 3552 | ||
| 3557 | #endif /* unix */ | 3553 | #endif /* HAVE_SYNC */ |
| 3558 | 3554 | ||
| 3559 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, | 3555 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, |
| 3560 | doc: /* Return t if file FILE1 is newer than file FILE2. | 3556 | doc: /* Return t if file FILE1 is newer than file FILE2. |
| @@ -6793,7 +6789,7 @@ A non-nil value may result in data loss! */); | |||
| 6793 | defsubr (&Sread_file_name); | 6789 | defsubr (&Sread_file_name); |
| 6794 | defsubr (&Snext_read_file_uses_dialog_p); | 6790 | defsubr (&Snext_read_file_uses_dialog_p); |
| 6795 | 6791 | ||
| 6796 | #ifdef unix | 6792 | #ifdef HAVE_SYNC |
| 6797 | defsubr (&Sunix_sync); | 6793 | defsubr (&Sunix_sync); |
| 6798 | #endif | 6794 | #endif |
| 6799 | } | 6795 | } |