aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-02 04:21:38 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-02 04:21:38 +0800
commit48596c21050582c29cafd4f0c990670244ee95f0 (patch)
tree56b56dff581b9b76b1f1030fca233d0ff2cc034c
parent70edeb56b4fb87bd151e13135b21183fdf6a17e4 (diff)
downloadfreebsd-ports-gnome-48596c21050582c29cafd4f0c990670244ee95f0.tar.gz
freebsd-ports-gnome-48596c21050582c29cafd4f0c990670244ee95f0.tar.zst
freebsd-ports-gnome-48596c21050582c29cafd4f0c990670244ee95f0.zip
cad/alliance: unbreak on 12.0 after base r308264
In file included from /usr/include/math.h:20:0, from rutacces.c:18: ruterror.h:49:14: error: expected identifier or '(' before '__builtin_choose_expr' extern char *basename(); ^ Reported by: pkg-fallout
-rw-r--r--cad/alliance/Makefile2
-rw-r--r--cad/alliance/files/patch-rds_src_ruterror.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/cad/alliance/Makefile b/cad/alliance/Makefile
index 6346a88addfb..0d412be3d9d7 100644
--- a/cad/alliance/Makefile
+++ b/cad/alliance/Makefile
@@ -3,7 +3,7 @@
PORTNAME= alliance
DISTVERSION= 5.0-20120515
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= cad
MASTER_SITES= http://ftp.lyx.org/lip6/softs/alliance/distribution/5.0/ \
http://ftp.jussieu.fr/lip6/softs/alliance/distribution/5.0/ \
diff --git a/cad/alliance/files/patch-rds_src_ruterror.h b/cad/alliance/files/patch-rds_src_ruterror.h
new file mode 100644
index 000000000000..a34d72b7009a
--- /dev/null
+++ b/cad/alliance/files/patch-rds_src_ruterror.h
@@ -0,0 +1,11 @@
+--- rds/src/ruterror.h.orig 2002-04-25 14:13:59 UTC
++++ rds/src/ruterror.h
+@@ -46,7 +46,7 @@
+ | |
+ \------------------------------------------------------------*/
+
+-extern char *basename();
++#include <libgen.h>
+
+ # define ruterror( E, V ) (rut_error( (E), (V), basename(__FILE__), __LINE__ ))
+