File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -270,12 +270,9 @@ cmake_pop_check_state()
270
270
271
271
check_type_size("gid_t" SIZEOF_GID_T)
272
272
if (NOT HAVE_SIZEOF_GID_T)
273
- set (
274
- gid_t
275
- int
276
- CACHE INTERNAL
277
- "Define as 'int' if not defined in <sys/types.h>."
278
- )
273
+ set (PHP_GID_T_CODE "#define gid_t int" )
274
+ else ()
275
+ set (PHP_GID_T_CODE "/* #undef gid_t */" )
279
276
endif ()
280
277
281
278
check_type_size("int" SIZEOF_INT)
@@ -305,12 +302,9 @@ endif()
305
302
306
303
check_type_size("uid_t" SIZEOF_UID_T)
307
304
if (NOT HAVE_SIZEOF_UID_T)
308
- set (
309
- uid_t
310
- int
311
- CACHE INTERNAL
312
- "Define as 'int' if not defined in <sys/types.h>."
313
- )
305
+ set (PHP_UID_T_CODE "#define uid_t int" )
306
+ else ()
307
+ set (PHP_UID_T_CODE "/* #undef uid_t */" )
314
308
endif ()
315
309
316
310
# Check for socklen_t type.
Original file line number Diff line number Diff line change 654
654
# endif
655
655
#else
656
656
/* Define to 'int' if <sys/types.h> doesn't define. */
657
- # cmakedefine gid_t @gid_t @
657
+ @ PHP_GID_T_CODE @
658
658
659
659
/* Define to 'int' if <sys/types.h> doesn't define. */
660
- # cmakedefine uid_t @uid_t @
660
+ @ PHP_UID_T_CODE @
661
661
662
662
# include <stdlib.h>
663
663
You can’t perform that action at this time.
0 commit comments