summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-03 08:37:40 +0000
committerJim Meyering <jim@meyering.net>2000-05-03 08:37:40 +0000
commite6d69926e64f2bcad6326f988beadf01cdbc1b93 (patch)
tree76fc8c3e4bbb68e57e69320cb43f69305faede8c /src
parent7e3bd1d8979ca5c5c9b6458096375c08873c027c (diff)
downloadcoreutils-e6d69926e64f2bcad6326f988beadf01cdbc1b93.tar.xz
(!HAVE_DECL_STRNDUP): Declare strndup.
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index 89af5bbcc..11fd05f4a 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -283,6 +283,10 @@ char *stpcpy ();
# endif
#endif
+#if !HAVE_DECL_STRNDUP
+char *strndup ();
+#endif
+
#if !HAVE_DECL_STRSTR
char *strstr ();
#endif