OSDN Git Service

Make sure size_t is defined before used in strings.h
authorMartin Storsjo <martin@martin.st>
Wed, 22 Jul 2009 09:41:02 +0000 (11:41 +0200)
committerMartin Storsjo <martin@martin.st>
Wed, 22 Jul 2009 09:41:02 +0000 (11:41 +0200)
Otherwise, including strings.h as the first file in a C file yields errors.

This fixes issue 3332.

libc/include/strings.h

index 1f73e21..fee7dc4 100644 (file)
@@ -39,6 +39,7 @@
 #ifndef _STRINGS_H_
 #define _STRINGS_H_
 
+#include <sys/types.h>
 #include <sys/cdefs.h>
 
 __BEGIN_DECLS