X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Ftypes.h;h=f5b648794ff1a3bc8e3c7a8fa745bac1cf9832c0;hb=9cf9c39e48342a5d4007824d49b88132d93d83e3;hp=b9b65f6af06ab172afe1b3ac004407d3d81bed81;hpb=f0b85fd926c5a381416c94be62e7bc20d9fdbdb1;p=musl diff --git a/include/sys/types.h b/include/sys/types.h index b9b65f6a..f5b64879 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -58,7 +58,7 @@ typedef __uint16_t u_int16_t; typedef __uint32_t u_int32_t; typedef __uint64_t u_int64_t; -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) typedef char *caddr_t; typedef unsigned char u_char; typedef unsigned short u_short, ushort; @@ -72,7 +72,7 @@ typedef long register_t; #include #endif -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #define blksize64_t blksize_t #define blkcnt64_t blkcnt_t #define fsblkcnt64_t fsblkcnt_t