This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] ulong typedef
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: newlib <newlib at sources dot redhat dot com>
- Date: Fri, 14 Jan 2011 12:54:19 -0600
- Subject: [PATCH] ulong typedef
The ulong typedef is also provided by Linux alongside ushort and uint.
PHP expects this, and if it's not present, its workaround breaks the
build of php-qt (from kdebindings).
Patch attached.
Yaakov
Cygwin/X
2011-01-14 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/types.h (ulong): Add typedef.
Index: libc/include/sys/types.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/types.h,v
retrieving revision 1.34
diff -u -r1.34 types.h
--- libc/include/sys/types.h 8 Dec 2010 14:44:06 -0000 1.34
+++ libc/include/sys/types.h 14 Jan 2011 16:44:13 -0000
@@ -98,6 +98,7 @@
typedef unsigned short ushort; /* System V compatibility */
typedef unsigned int uint; /* System V compatibility */
+typedef unsigned long ulong; /* System V compatibility */
# endif /*!_POSIX_SOURCE */
#ifndef __clock_t_defined