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