about summary refs log tree commit diff
path: root/sysdeps/generic/getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/getpid.c')
-rw-r--r--sysdeps/generic/getpid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/generic/getpid.c b/sysdeps/generic/getpid.c
index 33b1cebe2c..26207961e9 100644
--- a/sysdeps/generic/getpid.c
+++ b/sysdeps/generic/getpid.c
@@ -19,8 +19,6 @@
 #include <errno.h>
 #include <unistd.h>
 
-#undef __getpid
-
 /* Get the process ID of the calling process.  */
 int
 __getpid ()
@@ -28,8 +26,8 @@ __getpid ()
   __set_errno (ENOSYS);
   return -1;
 }
+libc_hidden_def (__getpid)
 stub_warning (getpid)
 
-INTDEF(__getpid)
 weak_alias (__getpid, getpid)
 #include <stub-tag.h>