From 997399c74e7f6e9844fefdd1b365d2df36033aaf Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 7 Mar 2016 11:10:30 +0100 Subject: mpg123: fix building without IPv6 Without this building will fail with: src/resolver.c: In function 'open_connection': src/resolver.c:259:29: error: 'struct hostent' has no member named 'h_addr' Signed-off-by: Michael Olbrich --- rules/mpg123.make | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules/mpg123.make') diff --git a/rules/mpg123.make b/rules/mpg123.make index 536d029f2..059c3f663 100644 --- a/rules/mpg123.make +++ b/rules/mpg123.make @@ -41,6 +41,10 @@ MPG123_CONF_OPT := \ --with-audio=alsa\ --with-default-audio=alsa\ --enable-modules=no + +# needed when compiling without IPv6 +MPG123_CPPFLAGS := -D_GNU_SOURCE + # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- -- cgit v1.2.3