freebsd-ports/lang/kawa/files/patch-bin_kawapath.c
Volker Stolz 97ecb975c6 Fix build on 4.x
Approved by: maintainer via barner@
2005-11-23 14:24:17 +00:00

16 lines
349 B
C

$FreeBSD$
--- bin/kawapath.c.orig
+++ bin/kawapath.c
@@ -15,8 +15,8 @@
const char *path = getenv("KAWALIB");
if (path == NULL)
{
- path = kawalib;
const char *rp = progname == NULL ? NULL : strrchr(progname, '/');
+ path = kawalib;
if (rp != NULL)
{
/* If kawa is executed "in place" as $builddir/bin/kawa