[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Need to define 'unix' to compile under OS X?]
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: address@hidden: Need to define 'unix' to compile under OS X?] |
Date: |
Thu, 30 Nov 2006 23:12:50 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.0.91 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Wed, 29 Nov 2006 22:21:05 -0500, Richard Stallman <address@hidden>
>>>>> said:
> Someone interested in the Mac might want to do something about this.
How about introducing HAVE_SYNC?
YAMAMOTO Mitsuharu
address@hidden
Index: configure.in
===================================================================
RCS file: /cvsroot/emacs/emacs/configure.in,v
retrieving revision 1.419
diff -c -r1.419 configure.in
*** configure.in 26 Nov 2006 22:16:17 -0000 1.419
--- configure.in 30 Nov 2006 14:01:26 -0000
***************
*** 2489,2495 ****
utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
sendto recvfrom getsockopt setsockopt getsockname getpeername \
! gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign)
AC_CHECK_HEADERS(sys/un.h)
--- 2489,2495 ----
utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
sendto recvfrom getsockopt setsockopt getsockname getpeername \
! gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign)
AC_CHECK_HEADERS(sys/un.h)
Index: src/fileio.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/fileio.c,v
retrieving revision 1.575
diff -c -r1.575 fileio.c
*** src/fileio.c 21 Nov 2006 01:34:30 -0000 1.575
--- src/fileio.c 30 Nov 2006 14:02:32 -0000
***************
*** 3541,3551 ****
return Qt;
}
! #ifdef __NetBSD__
! #define unix 42
! #endif
!
! #ifdef unix
DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "",
doc: /* Tell Unix to finish all pending disk updates. */)
()
--- 3541,3547 ----
return Qt;
}
! #ifdef HAVE_SYNC
DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "",
doc: /* Tell Unix to finish all pending disk updates. */)
()
***************
*** 3554,3560 ****
return Qnil;
}
! #endif /* unix */
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.
--- 3550,3556 ----
return Qnil;
}
! #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,6799 ****
defsubr (&Sread_file_name);
defsubr (&Snext_read_file_uses_dialog_p);
! #ifdef unix
defsubr (&Sunix_sync);
#endif
}
--- 6789,6795 ----
defsubr (&Sread_file_name);
defsubr (&Snext_read_file_uses_dialog_p);
! #ifdef HAVE_SYNC
defsubr (&Sunix_sync);
#endif
}