This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

posix/unistd.h patch


Without this patch, I get a parse error building gcc for hppa due to
intptr_t being undefined.

2000-06-10  Alan Modra  <alan@linuxcare.com.au>

	* posix/unistd.h (sbrk, __sbrk): Use __intptr_t, not intptr_t.

--- posix/unistd.h.orig	Thu May 18 19:11:00 2000
+++ posix/unistd.h	Sat Jun 10 12:29:30 2000
@@ -875,8 +875,8 @@
    If successful, returns the address the previous end of data space
    (i.e. the beginning of the new space, if DELTA > 0);
    returns (void *) -1 for errors (with errno set).  */
-extern void *__sbrk (intptr_t __delta) __THROW;
-extern void *sbrk (intptr_t __delta) __THROW;
+extern void *__sbrk (__intptr_t __delta) __THROW;
+extern void *sbrk (__intptr_t __delta) __THROW;
 #endif
 
 
-- 
Linuxcare.  Support for the Revolution.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]