On hurd other includes are required to compile.

Submitted by Tobias Frost on April 24, 2016, 8:09 a.m.

Details

Message ID 1461485390-15878-2-git-send-email-tobi@coldtobi.de
State New
Headers show
Series "libdrm: Patch to compile on hurd." ( rev: 2 ) in DRI devel

Not browsing as part of any series.

Commit Message

Tobias Frost April 24, 2016, 8:09 a.m.
As both BSD and Hurd needs also the typedefs, so making sure that they are
become declared when not compiling for linux.
---
 include/drm/drm.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/include/drm/drm.h b/include/drm/drm.h
index b4ebaa9..e77146f 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -42,10 +42,14 @@ 
 #include <asm/ioctl.h>
 typedef unsigned int drm_handle_t;
 
+#elif defined(__GNU__) /* this is hurd */
+#include <stdint.h>
+#include <mach/i386/ioccom.h>
 #else /* One of the BSDs */
-
 #include <sys/ioccom.h>
 #include <sys/types.h>
+#endif
+#if !defined(__linux__)
 typedef int8_t   __s8;
 typedef uint8_t  __u8;
 typedef int16_t  __s16;