apparently gnu caddr_t is supposed to be char *, not unsigned long
authorRich Felker <dalias@aerifal.cx>
Wed, 1 Feb 2012 19:12:19 +0000 (14:12 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 1 Feb 2012 19:12:19 +0000 (14:12 -0500)
this type should never be used anyway, but some old junk uses it..

include/sys/types.h

index 72b4c5c..18433f8 100644 (file)
@@ -59,7 +59,7 @@ typedef __uint32_t u_int32_t;
 typedef __uint64_t u_int64_t;
 
 #ifdef _GNU_SOURCE
-typedef unsigned long caddr_t;
+typedef char *caddr_t;
 typedef unsigned char u_char;
 typedef unsigned short u_short, ushort;
 typedef unsigned u_int, uint;