about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/string.h1
-rw-r--r--string/strverscmp.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/string/string.h b/string/string.h
index 8bf4a87098..39d1d61193 100644
--- a/string/string.h
+++ b/string/string.h
@@ -263,6 +263,7 @@ extern char *strsep __P ((char **__stringp, __const char *__delim));
 
 #ifdef	__USE_GNU
 /* Compare S1 and S2 as strings holding name & indices/version numbers.  */
+extern int __strverscmp __P ((__const char *__s1, __const char *__s2));
 extern int strverscmp __P ((__const char *__s1, __const char *__s2));
 
 /* Return a string describing the meaning of the signal number in SIG.  */
diff --git a/string/strverscmp.c b/string/strverscmp.c
index 815073ecbf..39dfc61a9b 100644
--- a/string/strverscmp.c
+++ b/string/strverscmp.c
@@ -39,7 +39,7 @@
 */
 
 int
-strverscmp (s1, s2)
+__strverscmp (s1, s2)
      const char *s1;
      const char *s2;
 {
@@ -109,3 +109,4 @@ strverscmp (s1, s2)
       return state;
   }
 }
+weak_alias (__strverscmp, strverscmp)