Description: Patches from Rob Browning for emacsen-common
Author: Rob Browning <rlb@defaultvalue.org>

Reviewed-By: broonie@debian.org
Last-Update: 2018-08-26

--- xemacs21-21.4.24.orig/configure.in
+++ xemacs21-21.4.24/configure.in
@@ -2866,8 +2866,12 @@ EOF
 	  *     ) val=1 ;;
 	esac
 dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above.
-	if grep "^#define $sym " confdefs.h >/dev/null; then :; else
-	  if test "$val" = "1"
+	if grep "^#define $sym " confdefs.h >/dev/null \
+           || test "$have_glibc" = "yes" -a "$sym" = "_BSD_SOURCE" \
+           || test "$have_glibc" = "yes" -a "$sym" = "_SVID_SOURCE"; \
+          then \
+            :; \
+          else if test "$val" = "1"
 	    then AC_DEFINE_UNQUOTED($sym)
 	    else AC_DEFINE_UNQUOTED($sym,$val)
 	  fi
