Files
pkgsrc-ng/print/a2ps/patches/patch-ac
2013-09-26 17:14:40 +02:00

17 lines
468 B
Plaintext

$NetBSD: patch-ac,v 1.7 2010/10/28 23:21:53 tron Exp $
Fix build problem under Mac OS X where stpcpy() is a macro.
--- lib/xstrrpl.c.orig 2007-12-29 01:37:54.000000000 +0000
+++ lib/xstrrpl.c 2010-10-28 23:29:51.000000000 +0100
@@ -22,7 +22,9 @@
#include <assert.h>
#include "xstrrpl.h"
+#ifndef stpcpy
extern char * stpcpy();
+#endif
/* Perform subsitutions in string. Result is malloc'd
E.g., result = xstrrrpl ("1234", subst) gives result = "112333"