This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

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