summaryrefslogtreecommitdiffstats
path: root/src/configure.ac
diff options
context:
space:
mode:
authorMarco Varlese <marco.varlese@suse.com>2018-03-06 08:09:04 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-06 13:11:18 +0000
commit3f6ede3ab3df9624ba3682d5bc82c4f2aa2e0506 (patch)
treeb84d091abc782ca9710cd9b880b066d9cd283c6f /src/configure.ac
parent07dce1e11de9872b5c9695e8cbbf89a2bcb3f63d (diff)
glibc 2.27 fix
With glibc 2.27 the memfd_create has been added to the devel libraries. That's causing the internally defined static function to clash with the system wide one. This patch addresses that issue on systems with latest glibc libraries. Change-Id: I788bf49b23d5b5f1cb1c0374e243d8a429178a71 Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src/configure.ac')
-rw-r--r--src/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac
index 857bd01521a..d9c8a47b582 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -234,6 +234,7 @@ PLUGIN_ENABLED(stn)
###############################################################################
# Dependency checks
###############################################################################
+AC_CHECK_FUNC([memfd_create], [AC_DEFINE([HAVE_MEMFD_CREATE], [1], [Define if memfd exists])])
AM_COND_IF([ENABLE_DPDK_SHARED],
[