about summary refs log tree commit diff
path: root/sysdeps/generic/stpcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/stpcpy.c')
-rw-r--r--sysdeps/generic/stpcpy.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/generic/stpcpy.c b/sysdeps/generic/stpcpy.c
index f010179e08..9800ace993 100644
--- a/sysdeps/generic/stpcpy.c
+++ b/sysdeps/generic/stpcpy.c
@@ -18,9 +18,15 @@
 
 #include <string.h>
 
+#ifndef weak_alias
+# define __stpcpy stpcpy
+#endif
+
 /* Copy SRC to DEST, returning the address of the terminating '\0' in DEST.  */
 char *
-__stpcpy (char *dest, const char *src)
+__stpcpy (dest, src)
+     char *dest;
+     const char *src;
 {
   register char *d = dest;
   register const char *s = src;
@@ -31,4 +37,6 @@ __stpcpy (char *dest, const char *src)
 
   return d - 1;
 }
+#ifdef weak_alias
 weak_alias (__stpcpy, stpcpy)
+#endif