[LTP] [PATCH] include/lapi/dccp.h: check linux/dccp.h in configure
Alexey Kodanev
alexey.kodanev@oracle.com
Fri Mar 23 16:31:16 CET 2018
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
configure.ac | 1 +
include/lapi/dccp.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 9ff37af..1721ff2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,7 @@ AC_CHECK_HEADERS([ \
ifaddrs.h \
keyutils.h \
linux/can.h \
+ linux/dccp.h \
linux/genetlink.h \
linux/keyctl.h \
linux/if_packet.h \
diff --git a/include/lapi/dccp.h b/include/lapi/dccp.h
index 1d7fa05..0d852ad 100644
--- a/include/lapi/dccp.h
+++ b/include/lapi/dccp.h
@@ -18,7 +18,9 @@
#ifndef LAPI_DCCP_H__
#define LAPI_DCCP_H__
-#include <linux/dccp.h>
+#ifdef HAVE_LINUX_DCCP_H
+# include <linux/dccp.h>
+#endif
#ifndef DCCP_SOCKOPT_SERVICE
# define DCCP_SOCKOPT_SERVICE 2
--
1.7.1
More information about the ltp
mailing list