freebsd-ports/cad/alliance/files/patch-rds_src_ruterror.h
Jan Beich f3dc33ecc2 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
2017-02-01 20:21:38 +00:00

11 lines
357 B
C

--- 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__ ))