posix/unistd.h patch

Alan Modra alan@linuxcare.com.au
Fri Jun 9 20:06:00 GMT 2000


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.



More information about the Libc-alpha mailing list