freebsd-ports/lang/sdcc/files/patch-support_sdbinutils_libiberty_xmalloc.c
Daniel O'Connor f565698366
lang/sdcc: Fix build if binutils is installed
binutils has ansidecls.h which gets picked up before the sdcc version
which breaks the build.  Patch the files which use it to use a relative
path.

PR:		273037
2023-08-15 09:40:43 +08:00

11 lines
344 B
C

--- support/sdbinutils/libiberty/xmalloc.c.orig 2018-03-18 17:46:53 UTC
+++ support/sdbinutils/libiberty/xmalloc.c
@@ -63,7 +63,7 @@ function will be called to print an error message and
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include "ansidecl.h"
+#include "../include/ansidecl.h"
#include "libiberty.h"
#include "environ.h"