diff options
| -rw-r--r-- | src/fileio.c | 14 | ||||
| -rw-r--r-- | src/s/aix3-2.h | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6948653f968..049eb83af08 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -51,6 +51,14 @@ extern int sys_nerr; | |||
| 51 | #include <sys/time.h> | 51 | #include <sys/time.h> |
| 52 | #endif | 52 | #endif |
| 53 | 53 | ||
| 54 | #ifndef USG | ||
| 55 | #ifndef VMS | ||
| 56 | #ifndef BSD4_1 | ||
| 57 | #define HAVE_FSYNC | ||
| 58 | #endif | ||
| 59 | #endif | ||
| 60 | #endif | ||
| 61 | |||
| 54 | #include "lisp.h" | 62 | #include "lisp.h" |
| 55 | #include "intervals.h" | 63 | #include "intervals.h" |
| 56 | #include "buffer.h" | 64 | #include "buffer.h" |
| @@ -2658,16 +2666,12 @@ to the file, instead of any buffer contents, and END is ignored.") | |||
| 2658 | 2666 | ||
| 2659 | immediate_quit = 0; | 2667 | immediate_quit = 0; |
| 2660 | 2668 | ||
| 2661 | #ifndef USG | 2669 | #ifdef HAVE_FSYNC |
| 2662 | #ifndef VMS | ||
| 2663 | #ifndef BSD4_1 | ||
| 2664 | /* Note fsync appears to change the modtime on BSD4.2 (both vax and sun). | 2670 | /* Note fsync appears to change the modtime on BSD4.2 (both vax and sun). |
| 2665 | Disk full in NFS may be reported here. */ | 2671 | Disk full in NFS may be reported here. */ |
| 2666 | if (fsync (desc) < 0) | 2672 | if (fsync (desc) < 0) |
| 2667 | failure = 1, save_errno = errno; | 2673 | failure = 1, save_errno = errno; |
| 2668 | #endif | 2674 | #endif |
| 2669 | #endif | ||
| 2670 | #endif | ||
| 2671 | 2675 | ||
| 2672 | /* Spurious "file has changed on disk" warnings have been | 2676 | /* Spurious "file has changed on disk" warnings have been |
| 2673 | observed on Suns as well. | 2677 | observed on Suns as well. |
diff --git a/src/s/aix3-2.h b/src/s/aix3-2.h index 72ad697e03e..504b1548aad 100644 --- a/src/s/aix3-2.h +++ b/src/s/aix3-2.h | |||
| @@ -10,3 +10,5 @@ | |||
| 10 | #define HAVE_ALLOCA | 10 | #define HAVE_ALLOCA |
| 11 | #undef rindex | 11 | #undef rindex |
| 12 | #undef index | 12 | #undef index |
| 13 | |||
| 14 | #define HAVE_FSYNC | ||