summaryrefslogtreecommitdiff
path: root/lib/strndup.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-07-03 03:59:02 +0000
committerJim Meyering <jim@meyering.net>1996-07-03 03:59:02 +0000
commit1672bf6d2728b5782d9402532c7967caec216e6e (patch)
treef1f2c3a76f506869bd30ac5d0e50c1994f326914 /lib/strndup.c
parent8736952b0b0534467b3d270bb5b7bc8fb3a39c01 (diff)
downloadcoreutils-1672bf6d2728b5782d9402532c7967caec216e6e.tar.xz
(strndup): Include stdio.h and sys/types.h to
get definition of NULL and size_t on SunOS4.1.3.
Diffstat (limited to 'lib/strndup.c')
-rw-r--r--lib/strndup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/strndup.c b/lib/strndup.c
index 08dbeeaef..6bceed081 100644
--- a/lib/strndup.c
+++ b/lib/strndup.c
@@ -21,6 +21,9 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
# include "config.h"
#endif
+#include <stdio.h>
+#include <sys/types.h>
+
#ifdef STDC_HEADERS
# include <string.h>
# include <stdlib.h>