e09f1b7
From 91859da062efbf336b83375ed9fad51cf3fb1643 Mon Sep 17 00:00:00 2001
e09f1b7
From: Honggang Li <honli@redhat.com>
e09f1b7
Date: Tue, 21 Feb 2017 21:57:12 -0500
e09f1b7
Subject: [PATCH] Include sysmacros.h
e09f1b7
e09f1b7
Signed-off-by: Honggang Li <honli@redhat.com>
e09f1b7
---
e09f1b7
 ipath/ipath_proto.c | 4 ++++
e09f1b7
 1 file changed, 4 insertions(+)
e09f1b7
e09f1b7
diff --git a/ipath/ipath_proto.c b/ipath/ipath_proto.c
e09f1b7
index 5f9365f..2a60c73 100644
e09f1b7
--- a/ipath/ipath_proto.c
e09f1b7
+++ b/ipath/ipath_proto.c
e09f1b7
@@ -37,7 +37,11 @@
e09f1b7
 // level infinipath protocol code.
e09f1b7
 
e09f1b7
 #include <sys/poll.h>
e09f1b7
+#if __GNUC__ <= 6
e09f1b7
 #include <sys/types.h>
e09f1b7
+#else
e09f1b7
+#include <sys/sysmacros.h>
e09f1b7
+#endif
e09f1b7
 #include <sys/stat.h>
e09f1b7
 #include <stdint.h>
e09f1b7
 #include <stdlib.h>
e09f1b7
-- 
e09f1b7
2.7.4
e09f1b7