about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2015-01-16 09:18:58 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-01-16 09:18:58 +0100
commit026eb207eda8cc93f6f7f0980f0a8e51587d8011 (patch)
tree8866d58b96d07a59286347e262e3104b53bf1e94 /sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
parent1d53248326dbd3c620a2bca16d35eff3019d900a (diff)
downloadglibc-026eb207eda8cc93f6f7f0980f0a8e51587d8011.tar.gz
glibc-026eb207eda8cc93f6f7f0980f0a8e51587d8011.tar.xz
glibc-026eb207eda8cc93f6f7f0980f0a8e51587d8011.zip
S390: Get rid of linknamespace failures for utmp functions.
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c')
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c b/sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
index f13a747776..4962390029 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
@@ -21,8 +21,12 @@
 #include "utmp-compat.h"
 #include "utmp-private.h"
 
-#undef weak_alias
-#define weak_alias(n,a)
+#if defined SHARED
+# undef weak_alias
+# define weak_alias(n,a)
+#endif
 #include "sysdeps/gnu/updwtmp.c"
 
+#if defined SHARED
 default_symbol_version (__updwtmp, updwtmp, UTMP_COMPAT_BASE);
+#endif