baresip: fix build with musl
authorDaniel Golle <daniel@makrotopia.org>
Sun, 28 Jun 2015 18:46:11 +0000 (20:46 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 28 Jun 2015 18:46:45 +0000 (20:46 +0200)
alsa-lib needs _GNU_SOURCE to be set for integer types to be defined.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
net/baresip/Makefile

index a78089d6193eb2313fde83e060936b4eb18c8e9b..3c086a5e2c47a2b5bdbff6ff5ec023be7a423042 100644 (file)
@@ -72,7 +72,7 @@ BARESIP_MOD_OPTIONS:= \
        MOD_AUTODETECT= \
        $(foreach m,$(baresip-mods),$(baresip-mod-$(m))=$(if $(CONFIG_PACKAGE_baresip-mod-$(m)),1))
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \