From 426455421a3bcccc79829c029100003478bf7e57 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Sep 2017 09:43:07 +0200 Subject: [PATCH] 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). --- meson.build | 2 ++ 1 file changed, 2 insertions(+) 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 = [ -- 2.30.2