intptr_t in unistd.h

Roland McGrath roland@frob.com
Sun Mar 26 13:08:00 GMT 2000


This change seems to be necessary to allow things that use some combinations
other than _GNU_SOURCE et al to compile.

2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>

	* posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
	__USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
	We need this for the sbrk decl, which can be included without Unix98.

Index: posix/unistd.h
===================================================================
RCS file: /cvs/glibc/libc/posix/unistd.h,v
retrieving revision 1.105
diff -u -b -p -r1.105 posix/unistd.h
--- posix/unistd.h	2000/03/02 08:38:28	1.105
+++ posix/unistd.h	2000/03/26 21:07:26
@@ -235,12 +235,12 @@ typedef __pid_t pid_t;
 # endif
 #endif	/* X/Open */
 
-#ifdef __USE_UNIX98
+#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
 # ifndef __intptr_t_defined
 typedef __intptr_t intptr_t;
 #  define __intptr_t_defined
 # endif
-#endif	/* Unix98 */
+#endif
 
 /* Values for the second argument to access.
    These may be OR'd together.  */


More information about the Libc-hacker mailing list