about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/setsockopt.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-15 08:28:50 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-15 08:35:45 +0200
commitb8f889064d02cedc90a109848190207a767a4913 (patch)
tree5eac71ee069a4bc06d77bede7e30018d0139b95e /sysdeps/unix/sysv/linux/setsockopt.c
parentba33937be210da5d07f7f01709323743f66011ce (diff)
downloadglibc-b8f889064d02cedc90a109848190207a767a4913.tar.gz
glibc-b8f889064d02cedc90a109848190207a767a4913.tar.xz
glibc-b8f889064d02cedc90a109848190207a767a4913.zip
socket: Add hidden prototype for setsockopt
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/setsockopt.c')
-rw-r--r--sysdeps/unix/sysv/linux/setsockopt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/setsockopt.c b/sysdeps/unix/sysv/linux/setsockopt.c
index 2792f1b5a1..bb3017f89c 100644
--- a/sysdeps/unix/sysv/linux/setsockopt.c
+++ b/sysdeps/unix/sysv/linux/setsockopt.c
@@ -90,7 +90,7 @@ setsockopt32 (int fd, int level, int optname, const void *optval,
 #endif
 
 int
-setsockopt (int fd, int level, int optname, const void *optval, socklen_t len)
+__setsockopt (int fd, int level, int optname, const void *optval, socklen_t len)
 {
   int r = setsockopt_syscall (fd, level, optname, optval, len);
 
@@ -101,4 +101,5 @@ setsockopt (int fd, int level, int optname, const void *optval, socklen_t len)
 
   return r;
 }
-weak_alias (setsockopt, __setsockopt)
+libc_hidden_def (__setsockopt)
+weak_alias (__setsockopt, setsockopt)