summaryrefslogtreecommitdiff
path: root/lib/strdup.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-13 22:01:20 +0000
committerJim Meyering <jim@meyering.net>2003-09-13 22:01:20 +0000
commitdce9582d2ca06a6c50165014b21d95654541e8da (patch)
treea44364d0664dbc9f44ba1ed449b6e1fe9c1a7808 /lib/strdup.c
parent2be39af412edc53d4ef09097949550697c270173 (diff)
downloadcoreutils-dce9582d2ca06a6c50165014b21d95654541e8da.tar.xz
Update from gnulib.
Diffstat (limited to 'lib/strdup.c')
-rw-r--r--lib/strdup.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/strdup.c b/lib/strdup.c
index d37207199..52667e98e 100644
--- a/lib/strdup.c
+++ b/lib/strdup.c
@@ -1,4 +1,6 @@
-/* Copyright (C) 1991, 1996, 1997, 1998, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003 Free Software
+ Foundation, Inc.
+
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
@@ -19,13 +21,8 @@
# include <config.h>
#endif
-#if defined _LIBC || defined STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#else
-char *malloc ();
-char *memcpy ();
-#endif
+#include <stdlib.h>
+#include <string.h>
#undef __strdup
#undef strdup