openbsd-ports/math/calc/patches/patch-ab

16 lines
418 B
Plaintext

--- alloc.h.orig Mon Nov 8 12:11:28 1999
+++ alloc.h Mon Nov 8 12:37:39 1999
@@ -13,8 +13,11 @@
#include "have_newstr.h"
#include "have_string.h"
#include "have_memmv.h"
+#include "have_stdlib.h"
-#ifdef HAVE_MALLOC_H
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#elif defined (HAVE_MALLOC_H)
# include <malloc.h>
#else
#if defined(FORCE_STDC) || (defined(__STDC__) && __STDC__ != 0) || defined(__cplusplus)