pkgsrc/print/ghostscript-gpl/patches/patch-base_memento.c
wiz e954bde72b Rely on header to provide memset().
Gets us further in a PKGSRC_USE_FORT build; however, still fails with:

[1]   Abort trap (core dumped) ./soobj/aux/mkro...
base/lib.mak:3063: recipe for target 'soobj/gsromfs1_.c' failed
2015-08-11 18:16:50 +00:00

18 lines
475 B
C

$NetBSD: patch-base_memento.c,v 1.1 2015/08/11 18:16:50 wiz Exp $
Rely on header to get memset prototype.
--- base/memento.c.orig 2012-08-08 08:01:36.000000000 +0000
+++ base/memento.c
@@ -40,11 +40,7 @@
#ifdef MEMENTO_GS_HACKS
/* For GS we include malloc_.h. Anyone else would just include memento.h */
#include "malloc_.h"
-#ifdef __MACH__
#include <string.h>
-#else
-void *memset(void *,int,size_t);
-#endif
int atexit(void (*)(void));
#else
#include "memento.h"