Code

meson.build: define _GNU_SOURCE for getaddrinfo() and sigaction() with glibc
[ncmpc.git] / meson.build
index 09e8bc2a6bca9b11a84f9987da8d2ec347256b5a..92d005748c1a57e8961e7c90156c7b2ffd102de7 100644 (file)
@@ -142,7 +142,11 @@ else
 endif
 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 = [
@@ -192,7 +196,7 @@ inc = include_directories(
   'src',
 
   # for the generated config.h
-  meson.current_build_dir(),
+  '.',
 )
 
 sources = []