File 1308-erts-configure-Rebuild-configure.patch of Package erlang

From 00765fab87f53f9a48fc23c1c8b6aa7d1092394f Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Tue, 24 Feb 2026 17:29:09 +0100
Subject: [PATCH 08/14] [erts|configure] Rebuild configure

---
 erts/config.h.in |  6 ++++++
 erts/configure   | 22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/erts/config.h.in b/erts/config.h.in
index d515ec9cd2..ce987b719d 100644
--- a/erts/config.h.in
+++ b/erts/config.h.in
@@ -950,6 +950,9 @@
 /* Define to 1 if you have the 'pwrite' function. */
 #undef HAVE_PWRITE
 
+/* Define to 1 if you have the 'recvmmsg' function. */
+#undef HAVE_RECVMMSG
+
 /* Define to 1 if you have the 'res_gethostbyname' function. */
 #undef HAVE_RES_GETHOSTBYNAME
 
@@ -995,6 +998,9 @@
 /* Define to 1 if you have the `sendfilev' function. */
 #undef HAVE_SENDFILEV
 
+/* Define to 1 if you have the 'sendmmsg' function. */
+#undef HAVE_SENDMMSG
+
 /* Define to 1 if you have the 'setlocale' function. */
 #undef HAVE_SETLOCALE
 
diff --git a/erts/configure b/erts/configure
index 2c8ab06e23..9a0e78450d 100755
--- a/erts/configure
+++ b/erts/configure
@@ -21055,6 +21055,28 @@ fi
      ;;
 esac
 
+case $host_os in #(
+  linux*|freebsd*|dragonfly*|openbsd*|netbsd*) :
+
+                ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg"
+if test "x$ac_cv_func_recvmmsg" = xyes
+then :
+  printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg"
+if test "x$ac_cv_func_sendmmsg" = xyes
+then :
+  printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h
+
+fi
+
+         ;; #(
+  *) :
+     ;;
+esac
+
+
 
 saved_cppflags=$CPPFLAGS
 CPPFLAGS="$CPPFLAGS $EMU_THR_DEFS"
-- 
2.51.0

openSUSE Build Service is sponsored by