svn commit: r508841 - in head/graphics/glfw: . files
Jason Helfman
jgh at FreeBSD.org
Tue Aug 13 18:08:41 UTC 2019
Author: jgh
Date: Tue Aug 13 18:08:40 2019
New Revision: 508841
URL: https://svnweb.freebsd.org/changeset/ports/508841
Log:
- address WAYLAND build
PR: 238085
Submitted by: list1 at gjunka.com
Approved by: neel at neelc.org (maintainer)
Added:
head/graphics/glfw/files/patch-src-wl_init.c (contents, props changed)
Modified:
head/graphics/glfw/Makefile
Modified: head/graphics/glfw/Makefile
==============================================================================
--- head/graphics/glfw/Makefile Tue Aug 13 17:50:33 2019 (r508840)
+++ head/graphics/glfw/Makefile Tue Aug 13 18:08:40 2019 (r508841)
@@ -3,6 +3,7 @@
PORTNAME= glfw
PORTVERSION= 3.3
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF
Added: head/graphics/glfw/files/patch-src-wl_init.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/glfw/files/patch-src-wl_init.c Tue Aug 13 18:08:40 2019 (r508841)
@@ -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)
More information about the svn-ports-all
mailing list