1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- address WAYLAND build

PR:		238085
Submitted by:	list1@gjunka.com
Approved by:	neel@neelc.org (maintainer)
This commit is contained in:
Jason Helfman 2019-08-13 18:08:40 +00:00
parent 1ccea1b797
commit a42a7aa225
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508841
2 changed files with 27 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= glfw
PORTVERSION= 3.3
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF

View File

@ -0,0 +1,26 @@
--- src/wl_init.c.orig 2019-08-03 17:40:05 UTC
+++ src/wl_init.c
@@ -29,7 +29,6 @@
#include <assert.h>
#include <errno.h>
#include <limits.h>
-#include <linux/input.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -37,6 +36,15 @@
#include <sys/timerfd.h>
#include <unistd.h>
#include <wayland-client.h>
+#ifdef __has_include
+#if __has_include(<linux/input.h>)
+#include <linux/input.h>
+#elif __has_include(<dev/evdev/input.h>)
+#include <dev/evdev/input.h>
+#endif
+#else
+#include <linux/input.h>
+#endif
static inline int min(int n1, int n2)