include/lapi/dccp.h: check linux/dccp.h in configure
diff mbox series

Message ID 1521819076-27327-1-git-send-email-alexey.kodanev@oracle.com
State Accepted
Delegated to: Alexey Kodanev
Headers show
Series
  • include/lapi/dccp.h: check linux/dccp.h in configure
Related show

Commit Message

Alexey Kodanev March 23, 2018, 3:31 p.m. UTC
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
 configure.ac        |    1 +
 include/lapi/dccp.h |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

Patch
diff mbox series

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