aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-11-13 05:55:54 +0800
committereadler <eadler@FreeBSD.org>2013-11-13 05:55:54 +0800
commitb401eba1908c968e252c0f7e90924558b3140991 (patch)
treea2d74f92a1a77ef19324ecf57bdc402a4c2472cd /accessibility
parentb212308e9a85f341a4698fd8358ed75f79429c3f (diff)
downloadfreebsd-ports-gnome-b401eba1908c968e252c0f7e90924558b3140991.tar.gz
freebsd-ports-gnome-b401eba1908c968e252c0f7e90924558b3140991.tar.zst
freebsd-ports-gnome-b401eba1908c968e252c0f7e90924558b3140991.zip
Fix build error on 9.x+
Approved by: David K. Gerry <david.k.gerry@gmail.com> (maintainer)
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/yasr/Makefile2
-rw-r--r--accessibility/yasr/files/extra-patch-yasr__main.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/accessibility/yasr/Makefile b/accessibility/yasr/Makefile
index 4cdc49d5ddbe..354e2e37328f 100644
--- a/accessibility/yasr/Makefile
+++ b/accessibility/yasr/Makefile
@@ -40,7 +40,7 @@ PLIST_DIRS= %%DATADIR%%
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 900007
-BROKEN= fails to build with new utmpx
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-yasr__main.c
.endif
post-patch:
diff --git a/accessibility/yasr/files/extra-patch-yasr__main.c b/accessibility/yasr/files/extra-patch-yasr__main.c
new file mode 100644
index 000000000000..0e773cf87663
--- /dev/null
+++ b/accessibility/yasr/files/extra-patch-yasr__main.c
@@ -0,0 +1,14 @@
+--- ./yasr/main.c.orig 2013-11-11 18:44:59.238198747 -0500
++++ ./yasr/main.c 2013-11-11 18:45:09.927197900 -0500
+@@ -24,11 +24,7 @@
+
+ #include "yasr.h"
+ #include "term.h"
+-#include <utmp.h>
+-#ifdef HAVE_UTMPX_H
+ #include <utmpx.h>
+-#endif
+-#define UTMP_HACK
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>