Code

meson.build: define _GNU_SOURCE for getaddrinfo() and sigaction() with glibc
authorMax Kellermann <max.kellermann@gmail.com>
Thu, 21 Sep 2017 07:43:07 +0000 (09:43 +0200)
committerMax Kellermann <max.kellermann@gmail.com>
Thu, 21 Sep 2017 07:44:13 +0000 (09:44 +0200)
This appears to be necessary with older glibc versions (2.19 requires
it, 2.24 does not).

meson.build

index faaa2c6df78a336f73728e4d76aef82944782635..92d005748c1a57e8961e7c90156c7b2ffd102de7 100644 (file)
@@ -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 = [