summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/lib/xstrdup.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-05-23 10:46:22 +0000
committerru <ru@FreeBSD.org>2005-05-23 10:46:22 +0000
commit212fa58b27874a1ac997e85e3f696ffad810e44c (patch)
tree3fc59092050a7fe0bd61c1e105cf78dc1c99d284 /contrib/texinfo/lib/xstrdup.c
parent007f372a86653605d72852e22dcd423d0276786c (diff)
downloadFreeBSD-src-212fa58b27874a1ac997e85e3f696ffad810e44c.zip
FreeBSD-src-212fa58b27874a1ac997e85e3f696ffad810e44c.tar.gz
Import of stripped down GNU texinfo 4.8
Diffstat (limited to 'contrib/texinfo/lib/xstrdup.c')
-rw-r--r--contrib/texinfo/lib/xstrdup.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/contrib/texinfo/lib/xstrdup.c b/contrib/texinfo/lib/xstrdup.c
index cb1efa8..1182c59 100644
--- a/contrib/texinfo/lib/xstrdup.c
+++ b/contrib/texinfo/lib/xstrdup.c
@@ -1,5 +1,5 @@
/* xstrdup.c -- copy a string with out of memory checking
- Copyright (C) 1990, 1996, 1998, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1996, 1998, 2001, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -19,16 +19,11 @@
# include <config.h>
#endif
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
-
-#include <sys/types.h>
-
+/* Specification. */
#include "xalloc.h"
+#include <string.h>
+
/* Return a newly allocated copy of STRING. */
char *
OpenPOWER on IntegriCloud