From 0a2bb03fe20f81dc4cac96d7fe0e4194ae6efffd Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 13 Aug 2015 01:32:17 -0300 Subject: Linux-libre 4.1.5-gnu --- samples/kdbus/kdbus-workers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'samples') diff --git a/samples/kdbus/kdbus-workers.c b/samples/kdbus/kdbus-workers.c index c3ba95863..5a6dfdce3 100644 --- a/samples/kdbus/kdbus-workers.c +++ b/samples/kdbus/kdbus-workers.c @@ -59,9 +59,11 @@ #include #include +#include /* glibc < 2.7 does not ship sys/signalfd.h */ -#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 7 +/* we require kernels with __NR_memfd_create */ +#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 7 && defined(__NR_memfd_create) #include #include @@ -75,7 +77,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3-54-g00ecf