diff options
author | Antonio Cardace <acardace@redhat.com> | 2019-12-20 12:25:48 +0100 |
---|---|---|
committer | Antonio Cardace <acardace@redhat.com> | 2019-12-20 12:27:21 +0100 |
commit | 75abd765811a1beb0e736b18aae86f6932bc32fa (patch) | |
tree | fd224e856aa328897b33dfb5224182549491c913 | |
parent | 88e62129454c9b5035bc2452903b709c9d5024ef (diff) | |
download | NetworkManager-ac/meson_fix_deprecated.tar.gz |
meson: remove pid_t redefinitionac/meson_fix_deprecated
For some reason has_type() does not work correctly and causes
redefinition of the type.
-rw-r--r-- | config.h.meson | 3 | ||||
-rw-r--r-- | meson.build | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/config.h.meson b/config.h.meson index a2874f7703..0514418138 100644 --- a/config.h.meson +++ b/config.h.meson @@ -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 diff --git a/meson.build b/meson.build index 60d53da64e..c707bb1d21 100644 --- a/meson.build +++ b/meson.build @@ -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 = [] |