texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/lib system.h,1.5,1.6


From: karl
Subject: texinfo/lib system.h,1.5,1.6
Date: Fri, 26 Mar 2004 17:44:18 +0100

Update of /cvsroot/texinfo/texinfo/lib
In directory sheep:/tmp/cvs-serv21186

Modified Files:
        system.h 
Log Message:
include <unistd.h> last, following Autoconf's ac_includes_default.


Index: system.h
===================================================================
RCS file: /cvsroot/texinfo/texinfo/lib/system.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** system.h    26 Mar 2004 01:35:02 -0000      1.5
--- system.h    26 Mar 2004 16:44:15 -0000      1.6
***************
*** 36,45 ****
  #endif
  
! /* <unistd.h> should be included before any preprocessor test
!    of _POSIX_VERSION.  */
! #ifdef HAVE_UNISTD_H
! #include <unistd.h>
! #endif /* HAVE_UNISTD_H */
! 
  #include <stdio.h>
  #include <sys/types.h>
--- 36,41 ----
  #endif
  
! /* We follow the order of header inclusion from Autoconf's
!    ac_includes_default, more or less.  */
  #include <stdio.h>
  #include <sys/types.h>
***************
*** 93,96 ****
--- 89,98 ----
  char *memchr ();
  #endif
+ 
+ /* <unistd.h> defines _POSIX_VERSION, but Paul Eggert points out that is
+    only supposed to be used in user code, not other system headers.  */
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif /* HAVE_UNISTD_H */
  
  #include <errno.h>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]