summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-04 09:15:49 +0000
committerJim Meyering <jim@meyering.net>2000-12-04 09:15:49 +0000
commitfecdd2bd2b314074b879cb79553447ca6f4c1eda (patch)
treee6b39b6edc460381ed09c651a09b53376281486d /lib
parent15691fb64f575c9ec83a74c082c92b5caa8a1020 (diff)
downloadcoreutils-fecdd2bd2b314074b879cb79553447ca6f4c1eda.tar.xz
[!HAVE_DECL_MALLOC]: Declare malloc.
Diffstat (limited to 'lib')
-rw-r--r--lib/path-concat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/path-concat.c b/lib/path-concat.c
index d6dafc939..dfc540238 100644
--- a/lib/path-concat.c
+++ b/lib/path-concat.c
@@ -31,7 +31,13 @@
#endif
#include <sys/types.h>
+#ifndef HAVE_DECL_MALLOC
+"this configure-time declaration test was not run"
+#endif
+#if !HAVE_DECL_MALLOC
char *malloc ();
+#endif
+
#ifndef strdup
char *strdup ();
#endif