aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-10-04 08:01:09 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-10-04 08:01:09 +0000
commit5b22101bbe2ef6f08ab8f3baf5f4e51896d6c32a (patch)
treea47498283e088ab2b6e8b6ed0cd285d034e58b7c /x11
parent6ef5ee6f145b6db05ceb152e007b07992b2a153a (diff)
downloadports-5b22101bbe2ef6f08ab8f3baf5f4e51896d6c32a.tar.gz
ports-5b22101bbe2ef6f08ab8f3baf5f4e51896d6c32a.zip
Fix usage of autoconf's AC_TRY_COMPILE to avoid nested function
Obtained from: OpenBSD
Notes
Notes: svn path=/head/; revision=451186
Diffstat (limited to 'x11')
-rw-r--r--x11/keybinder/Makefile1
-rw-r--r--x11/keybinder/files/patch-configure.ac11
2 files changed, 12 insertions, 0 deletions
diff --git a/x11/keybinder/Makefile b/x11/keybinder/Makefile
index 871a9ff85046..b778733dfb20 100644
--- a/x11/keybinder/Makefile
+++ b/x11/keybinder/Makefile
@@ -2,6 +2,7 @@
PORTNAME= keybinder
PORTVERSION= 0.3.1
+PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= x11
diff --git a/x11/keybinder/files/patch-configure.ac b/x11/keybinder/files/patch-configure.ac
new file mode 100644
index 000000000000..9445e823a1dd
--- /dev/null
+++ b/x11/keybinder/files/patch-configure.ac
@@ -0,0 +1,11 @@
+--- configure.ac.orig 2015-11-06 15:08:46 UTC
++++ configure.ac
+@@ -139,7 +139,7 @@ if test "x$enable_python" != "xno"; then
+ ac_save_cc="$CC"
+ CC="$CC -fno-strict-aliasing"
+ AC_CACHE_VAL(ac_cv_no_strict_aliasing_ok,
+- AC_TRY_COMPILE([],[int main() { return 0; }],
++ AC_TRY_COMPILE([],[],
+ ac_cv_no_strict_aliasing_ok=yes,
+ ac_cv_no_strict_aliasing_ok=no))
+ CC="$ac_save_cc"