summaryrefslogtreecommitdiffstats
path: root/lib/libmagic
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-12-08 21:04:24 +0000
committerkib <kib@FreeBSD.org>2008-12-08 21:04:24 +0000
commit2e6f1edb43215ac92a1504930980b99efb13ee7b (patch)
treed222119fdf25f6e509a03e165fe282bb307b8a27 /lib/libmagic
parent2491570a9d7a97a5c127953203f037ececfce486 (diff)
downloadFreeBSD-src-2e6f1edb43215ac92a1504930980b99efb13ee7b.zip
FreeBSD-src-2e6f1edb43215ac92a1504930980b99efb13ee7b.tar.gz
Add strndup(3) prototype to string.h.
This change was erronously ommitted from the r185690, and attempt to simply add the prototype to string.h has revealed that several contributed programs defined local prototypes for strndup(), controlled by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1. Next import of the corresponding program would regenerate config.h, overriding the changes in this commit. No objections from: kan
Diffstat (limited to 'lib/libmagic')
-rw-r--r--lib/libmagic/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmagic/config.h b/lib/libmagic/config.h
index 65e4a6a..4f8a99f 100644
--- a/lib/libmagic/config.h
+++ b/lib/libmagic/config.h
@@ -77,7 +77,7 @@
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strndup' function. */
-/* #undef HAVE_STRNDUP */
+#define HAVE_STRNDUP 1
/* Define to 1 if you have the `strtof' function. */
#define HAVE_STRTOF 1
OpenPOWER on IntegriCloud