about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--misc/sstk.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/misc/sstk.c b/misc/sstk.c
index ad2010b5dd..0a2a967917 100644
--- a/misc/sstk.c
+++ b/misc/sstk.c
@@ -16,17 +16,14 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <shlib-compat.h>
 
-/* Increase the size of the stack by INCREMENT,
-   and return the address of the bottom of the stack.  */
-
-void *sstk (int increment) __THROW;
-
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_32)
 void *
 sstk (int increment)
 {
   __set_errno (ENOSYS);
   return (void *) -1;
 }
-
-stub_warning (sstk)
+compat_symbol (libc, sstk, sstk, GLIBC_2_0);
+#endif