summaryrefslogtreecommitdiffstats
path: root/rules/mpg123.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-03-07 11:10:30 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-03-10 10:59:29 +0100
commit997399c74e7f6e9844fefdd1b365d2df36033aaf (patch)
tree52684ff2ac9f36d913f2aaa02423342eb4e4109c /rules/mpg123.make
parentfd159b35d81e2a0eff259e79cfbdb996386851b2 (diff)
downloadptxdist-997399c74e7f6e9844fefdd1b365d2df36033aaf.tar.gz
ptxdist-997399c74e7f6e9844fefdd1b365d2df36033aaf.tar.xz
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 <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/mpg123.make')
-rw-r--r--rules/mpg123.make4
1 files changed, 4 insertions, 0 deletions
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
# ----------------------------------------------------------------------------