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 @@
. */
#include
+#include
-/* 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