meson: remove pid_t redefinition

For some reason has_type() does not work correctly and causes
redefinition of the type.
This commit is contained in:
Antonio Cardace 2019-12-20 12:25:48 +01:00
parent 6dc8167588
commit eaa26408f3
2 changed files with 0 additions and 7 deletions

View file

@ -249,9 +249,6 @@
/* Define to 1 if you need to in order for `stat' and other things to work. */
#mesondefine _POSIX_SOURCE
/* Define to `int' if <sys/types.h> does not define. */
#mesondefine pid_t
#mesondefine HAVE_PIDFD_OPEN
#mesondefine HAVE_PIDFD_SEND_SIGNAL
#mesondefine HAVE_RT_SIGQUEUEINFO

View file

@ -137,10 +137,6 @@ config_h.set('SIZEOF_INO_T', cc.sizeof('ino_t', prefix : '#include <sys/types.h>
config_h.set('SIZEOF_TIME_T', cc.sizeof('time_t', prefix : '#include <sys/time.h>'))
config_h.set('SIZEOF_RLIM_T', cc.sizeof('rlim_t', prefix : '#include <sys/resource.h>'))
if not cc.has_type('pid_t', prefix: '#include <sys/types.h>')
config_h.set('pid_t', 'int')
endif
# compiler flags
common_flags = []
common_ldflags = []