summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAndy Wingo <wingo@wingomac.bcn.oblong.net>2009-04-20 15:46:03 +0200
committerAndy Wingo <wingo@wingomac.bcn.oblong.net>2009-04-20 15:54:31 +0200
commit07dcbacd60402016bec2e3797e37008df58e6a79 (patch)
tree76785c9e22b83cf140532c7f3b787258798fd0b2 /configure.ac
parentcfcf76df11a45934cfdf32e227753d40a48beb18 (diff)
only use struct ip_mreqn if it is detected
* configure.ac: Make an explicit check for struct ip_mreqn. * gst/udp/gstudpnetutils.c: Use HAVE_IP_MREQN instead of the ad-hoc checks.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bb12f78d..31cb7ac5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -179,6 +179,12 @@ dnl Check for mmap (needed by electricfence plugin)
AC_FUNC_MMAP
AM_CONDITIONAL(GST_HAVE_MMAP, test "x$ac_cv_func_mmap_fixed_mapped" == "xyes")
+dnl Check for mmap (needed by electricfence plugin)
+
+AC_CHECK_TYPE([struct ip_mreqn], [
+ AC_DEFINE(HAVE_IP_MREQN,, [Define if we have struct ip_mreqn])],,
+ [#include <netinet/in.h>])
+
dnl *** checks for dependency libraries ***
dnl GLib is required