about summary refs log tree commit diff
path: root/nss/getXXent_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/getXXent_r.c')
-rw-r--r--nss/getXXent_r.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/nss/getXXent_r.c b/nss/getXXent_r.c
index 6f6f22ad0b..e0ba98b59a 100644
--- a/nss/getXXent_r.c
+++ b/nss/getXXent_r.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996,97,98,99,2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -290,7 +290,10 @@ INTERNAL (REENTRANT_GETNAME) (LOOKUP_TYPE *resbuf, char *buffer, size_t buflen,
   *result = status == NSS_STATUS_SUCCESS ? resbuf : NULL;
   return status == NSS_STATUS_SUCCESS ? 0 : errno;
 }
-#if defined SHARED && DO_VERSIONING
+
+
+#include <shlib-compat.h>
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1_2)
 #define OLD(name) OLD1 (name)
 #define OLD1(name) __old_##name
 
@@ -308,14 +311,13 @@ OLD (REENTRANT_GETNAME) (LOOKUP_TYPE *resbuf, char *buffer, size_t buflen,
 }
 
 #define do_symbol_version(real, name, version) \
-  symbol_version(real, name, version)
-do_symbol_version(OLD (REENTRANT_GETNAME), REENTRANT_GETNAME,
-		  GLIBC_2.0);
+  compat_symbol (libc, real, name, version)
+do_symbol_version (OLD (REENTRANT_GETNAME), REENTRANT_GETNAME, GLIBC_2_0);
 
 #define do_default_symbol_version(real, name, version) \
-  default_symbol_version(real, name, version)
-do_default_symbol_version(INTERNAL (REENTRANT_GETNAME),
-			  REENTRANT_GETNAME, GLIBC_2.1.2);
+  versioned_symbol (libc, real, name, version)
+do_default_symbol_version (INTERNAL (REENTRANT_GETNAME),
+			   REENTRANT_GETNAME, GLIBC_2_1_2);
 #else
 #define do_weak_alias(n1, n2) weak_alias (n1, n2)
 do_weak_alias (INTERNAL (REENTRANT_GETNAME), REENTRANT_GETNAME)