summaryrefslogtreecommitdiff
path: root/lib/userspec.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-04-04 06:51:11 +0000
committerJim Meyering <jim@meyering.net>2004-04-04 06:51:11 +0000
commit8c5584a1513cdbf62e8ed51c69053db4aae44682 (patch)
tree33f6842b5ab8d3e40869af4574990cfe15c3e50e /lib/userspec.c
parentfef16409575921ce744f360ed21800a6207d9f8f (diff)
downloadcoreutils-8c5584a1513cdbf62e8ed51c69053db4aae44682.tar.xz
Sync from gnulib.
Diffstat (limited to 'lib/userspec.c')
-rw-r--r--lib/userspec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/userspec.c b/lib/userspec.c
index 474fb6062..a997c6ff4 100644
--- a/lib/userspec.c
+++ b/lib/userspec.c
@@ -22,6 +22,9 @@
# include <config.h>
#endif
+/* Specification. */
+#include "userspec.h"
+
#include <alloca.h>
#include <stdio.h>
@@ -41,7 +44,7 @@
# include <unistd.h>
#endif
-#include "userspec.h"
+#include "strdup.h"
#include "xalloc.h"
#include "xstrtol.h"
@@ -108,10 +111,6 @@ struct group *getgrgid ();
of `digit' even when the host does not conform to POSIX. */
#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
-#ifndef strdup
-char *strdup ();
-#endif
-
/* Return nonzero if STR represents an unsigned decimal integer,
otherwise return 0. */