View | Details | Raw Unified | Return to bug 238085
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	glfw
4
PORTNAME=	glfw
5
PORTVERSION=	3.3
5
PORTVERSION=	3.3
6
PORTREVISION=	1
6
CATEGORIES=	graphics
7
CATEGORIES=	graphics
7
MASTER_SITES=	SF
8
MASTER_SITES=	SF
8
9
(-)files/patch-src-wl_init.c (+26 lines)
Line 0 Link Here
1
--- src/wl_init.c.orig	2019-08-03 17:40:05 UTC
2
+++ src/wl_init.c
3
@@ -29,7 +29,6 @@
4
 #include <assert.h>
5
 #include <errno.h>
6
 #include <limits.h>
7
-#include <linux/input.h>
8
 #include <stdio.h>
9
 #include <stdlib.h>
10
 #include <string.h>
11
@@ -37,6 +36,15 @@
12
 #include <sys/timerfd.h>
13
 #include <unistd.h>
14
 #include <wayland-client.h>
15
+#ifdef __has_include
16
+#if __has_include(<linux/input.h>)
17
+#include <linux/input.h>
18
+#elif __has_include(<dev/evdev/input.h>)
19
+#include <dev/evdev/input.h>
20
+#endif
21
+#else
22
+#include <linux/input.h>
23
+#endif
24
 
25
 
26
 static inline int min(int n1, int n2)

Return to bug 238085