Prevent dports gcc "fixing" the last headers.
authorzrj <rimvydas.jasinskas@gmail.com>
Sat, 20 Aug 2016 12:14:26 +0000 (15:14 +0300)
committerzrj <zrj@dragonflybsd.org>
Wed, 31 Aug 2016 07:46:03 +0000 (10:46 +0300)
Just mention _GCC_(PTRDIFF|SIZE|WCHAR)_T in comments to force 'gnu_types'
test to skip and not fix these headers. DragonFly types should be fine.

include/stddef.h
include/stdlib.h
include/unistd.h
sys/sys/types.h

index bc4eee1..23b0d53 100644 (file)
 
 #ifndef _SIZE_T_DECLARED
 #define _SIZE_T_DECLARED
-typedef        __size_t        size_t;         /* open group */
+typedef        __size_t        size_t;         /* open group, _GCC_SIZE_T OK */
 #endif
 
 #ifndef _PTRDIFF_T_DECLARED
 #define _PTRDIFF_T_DECLARED
-typedef        __ptrdiff_t     ptrdiff_t;      /* open group */
+typedef        __ptrdiff_t     ptrdiff_t;      /* open group, _GCC_PTRDIFF_T OK */
 #endif
 
 #if __BSD_VISIBLE
@@ -60,7 +60,7 @@ typedef       __rune_t        rune_t;
 #ifndef        __cplusplus
 #ifndef _WCHAR_T_DECLARED
 #define _WCHAR_T_DECLARED
-typedef __wchar_t      wchar_t;        /* open group */
+typedef        __wchar_t       wchar_t;        /* open group, _GCC_WCHAR_T OK */
 #endif
 #endif
 
index 016f366..f7fd367 100644 (file)
@@ -45,13 +45,13 @@ typedef     __rune_t        rune_t;
 #endif
 
 #ifndef _SIZE_T_DECLARED
-typedef        __size_t        size_t;
+typedef        __size_t        size_t;         /* _GCC_SIZE_T OK */
 #define        _SIZE_T_DECLARED
 #endif
 
 #ifndef        __cplusplus
 #ifndef _WCHAR_T_DECLARED
-typedef        __wchar_t       wchar_t;
+typedef        __wchar_t       wchar_t;        /* _GCC_WCHAR_T OK */
 #define        _WCHAR_T_DECLARED
 #endif
 #endif
index 13013d7..6f01a82 100644 (file)
@@ -58,7 +58,7 @@ typedef       __pid_t         pid_t;
 #endif
 
 #ifndef _SIZE_T_DECLARED
-typedef        __size_t        size_t;
+typedef        __size_t        size_t;         /* _GCC_SIZE_T OK */
 #define        _SIZE_T_DECLARED
 #endif
 
index c10e236..580ca0f 100644 (file)
@@ -184,7 +184,7 @@ typedef     __clockid_t     clockid_t;
 
 #ifndef _SIZE_T_DECLARED
 #define        _SIZE_T_DECLARED
-typedef        __size_t        size_t;
+typedef        __size_t        size_t;         /* _GCC_SIZE_T OK */
 #endif
 
 #ifndef _SSIZE_T_DECLARED