فهرست منبع

apparently gnu caddr_t is supposed to be char *, not unsigned long

this type should never be used anyway, but some old junk uses it..
Rich Felker 13 سال پیش
والد
کامیت
147f355cb6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      include/sys/types.h

+ 1 - 1
include/sys/types.h

@@ -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;