Fix for building on -CURRENT without <malloc.h>

This commit is contained in:
Jeremy Lea 2002-01-06 20:53:22 +00:00
parent 52d84ee998
commit 2a68afcbbd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52670
5 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- src/icu_db.c.orig Sat Jan 5 19:15:03 2002
+++ src/icu_db.c Sat Jan 5 19:16:00 2002
@@ -33,7 +33,11 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#if defined(HAVE_STDLIB_H)
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#if defined(HAVE_LIBGDBM)
#include <gdbm.h>

View File

@ -0,0 +1,14 @@
--- src/icu_db.c.orig Sat Jan 5 19:15:03 2002
+++ src/icu_db.c Sat Jan 5 19:16:00 2002
@@ -33,7 +33,11 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#if defined(HAVE_STDLIB_H)
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#if defined(HAVE_LIBGDBM)
#include <gdbm.h>

View File

@ -0,0 +1,14 @@
--- src/icu_db.c.orig Sat Jan 5 19:15:03 2002
+++ src/icu_db.c Sat Jan 5 19:16:00 2002
@@ -33,7 +33,11 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#if defined(HAVE_STDLIB_H)
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#if defined(HAVE_LIBGDBM)
#include <gdbm.h>

View File

@ -0,0 +1,14 @@
--- src/icu_db.c.orig Sat Jan 5 19:15:03 2002
+++ src/icu_db.c Sat Jan 5 19:16:00 2002
@@ -33,7 +33,11 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#if defined(HAVE_STDLIB_H)
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#if defined(HAVE_LIBGDBM)
#include <gdbm.h>

View File

@ -0,0 +1,14 @@
--- src/icu_db.c.orig Sat Jan 5 19:15:03 2002
+++ src/icu_db.c Sat Jan 5 19:16:00 2002
@@ -33,7 +33,11 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#if defined(HAVE_STDLIB_H)
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#if defined(HAVE_LIBGDBM)
#include <gdbm.h>