include sys/sysmacros.h from sys/types.h when _GNU_SOURCE is defined
authorRich Felker <dalias@aerifal.cx>
Sun, 20 Feb 2011 21:34:10 +0000 (16:34 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 20 Feb 2011 21:34:10 +0000 (16:34 -0500)
include/sys/types.h

index 7a126b077a3f0111eb7ecb46b883ef9fd1a3f0b9..427a5b49f87bcf232750a18286dcf29e4447b0d2 100644 (file)
@@ -60,6 +60,7 @@ extern "C" {
 
 #ifdef _GNU_SOURCE
 typedef unsigned long caddr_t;
+#include <sys/sysmacros.h>
 #endif
 
 #ifdef __cplusplus