From: Max Kellermann Date: Thu, 21 Sep 2017 07:43:07 +0000 (+0200) Subject: meson.build: define _GNU_SOURCE for getaddrinfo() and sigaction() with glibc X-Git-Tag: v0.28~4 X-Git-Url: https://git.tokkee.org/?p=ncmpc.git;a=commitdiff_plain;h=426455421a3bcccc79829c029100003478bf7e57 meson.build: define _GNU_SOURCE for getaddrinfo() and sigaction() with glibc This appears to be necessary with older glibc versions (2.19 requires it, 2.24 does not). --- diff --git a/meson.build b/meson.build index faaa2c6..92d0057 100644 --- a/meson.build +++ b/meson.build @@ -145,6 +145,8 @@ conf.set('ENABLE_LIRC', enable_lirc) conf.set('ENABLE_COLORS', curses_color) common_cflags = [ + # for getaddrinfo() and sigaction() with glibc + '-D_GNU_SOURCE', ] test_cflags = [