summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2018-01-26 17:04:28 +0000
committerEric Engestrom <eric.engestrom@imgtec.com>2018-03-20 14:30:27 +0000
commit1a44bbae734fa6aa227d2ac621ff7884af1ae8ef (patch)
tree7a491caee1358e6cce7743f0d24389f3b29009ce /meson.build
parent32e0370e36e8263b1e7dfb75f76934dbfce53e9c (diff)
downloadlibdrm-1a44bbae734fa6aa227d2ac621ff7884af1ae8ef.tar.gz
libdrm-1a44bbae734fa6aa227d2ac621ff7884af1ae8ef.tar.bz2
libdrm-1a44bbae734fa6aa227d2ac621ff7884af1ae8ef.zip
meson,configure: always define HAVE_OPEN_MEMSTREAM
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 1 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 2a6c4680..50daa1d0 100644
--- a/meson.build
+++ b/meson.build
@@ -196,9 +196,7 @@ if cc.has_header_symbol('sys/sysmacros.h', 'major')
elif cc.has_header_symbol('sys/mkdev.h', 'major')
config.set10('MAJOR_IN_MKDEV', true)
endif
-if cc.has_function('open_memstream')
- config.set10('HAVE_OPEN_MEMSTREAM', true)
-endif
+config.set10('HAVE_OPEN_MEMSTREAM', cc.has_function('open_memstream'))
warn_c_args = []
foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',