Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2019 18:08:40 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r508841 - in head/graphics/glfw: . files
Message-ID:  <201908131808.x7DI8euw006342@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@gjunka.com
  Approved by:	neel@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908131808.x7DI8euw006342>