From ec64145246bd24f2a5c91e749b328d027fa0254e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 22 May 2008 14:49:08 +0000 Subject: [PATCH] gst/udp/Makefile.am: Add -D_GNU_SOURCE to CFLAGS so we get things like EAI_ADDRFAMILY when including netdb.h when bui... Original commit message from CVS: * gst/udp/Makefile.am: Add -D_GNU_SOURCE to CFLAGS so we get things like EAI_ADDRFAMILY when including netdb.h when building against glibc >= 2.8. --- ChangeLog | 6 ++++++ gst/udp/Makefile.am | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 737e838..6998997 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-22 Tim-Philipp Müller + + * gst/udp/Makefile.am: + Add -D_GNU_SOURCE to CFLAGS so we get things like EAI_ADDRFAMILY + when including netdb.h when building against glibc >= 2.8. + 2008-05-22 Julien Moutte * gst/smpte/gstsmptealpha.c: (gst_smpte_alpha_setcaps): Fix diff --git a/gst/udp/Makefile.am b/gst/udp/Makefile.am index 3728898..b0f3f53 100644 --- a/gst/udp/Makefile.am +++ b/gst/udp/Makefile.am @@ -13,7 +13,10 @@ built_headers = gstudp-enumtypes.h gstudp-marshal.h BUILT_SOURCES = $(built_sources) $(built_headers) libgstudp_la_SOURCES = gstudp.c gstudpsrc.c gstudpsink.c gstmultiudpsink.c gstdynudpsink.c gstudpnetutils.c -libgstudp_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) + +# adding -D_GNU_SOURCE to get non-POSIX extensions like EAI_ADDRFAMILY +# with glibc >= 2.8 when including netdb.h (see glibc sources bug 6452) +libgstudp_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) -D_GNU_SOURCE libgstudp_la_LIBADD = $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) $(WIN32_LIBS)\ -lgstnetbuffer-@GST_MAJORMINOR@ libgstudp_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -- 2.7.4