projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable the strndup declaration also when strndup is replaced.
[gnulib.git]
/
lib
/
stpncpy.c
diff --git
a/lib/stpncpy.c
b/lib/stpncpy.c
index
445128a
..
2a5f81c
100644
(file)
--- a/
lib/stpncpy.c
+++ b/
lib/stpncpy.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1993, 1995-1997, 2002-2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995-1997, 2002-2003, 2005
-2007
Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@gnu.org.
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@gnu.org.
@@
-19,12
+19,10
@@
/* This is almost copied from strncpy.c, written by Torbjorn Granlund. */
/* This is almost copied from strncpy.c, written by Torbjorn Granlund. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
/* Specification. */
/* Specification. */
-#include
"stpncpy.h"
+#include
<string.h>
#ifndef weak_alias
# define __stpncpy stpncpy
#ifndef weak_alias
# define __stpncpy stpncpy