#ifndef SA_ONSTACK
# define SA_ONSTACK 0
#endif
+#ifndef SA_RESETHAND
+# define SA_RESETHAND 0
+#endif
+#ifndef SA_RESTART
+# define SA_RESTART 0
+#endif
#ifndef SA_SIGINFO
# define SA_SIGINFO 0
#endif
/* This assertion fails on glibc-2.3.6 systems with LinuxThreads,
when this program is linked with -lpthread, due to the sigaction()
override in libpthread.so. */
-#if !defined __GLIBC__
+#if !(defined __GLIBC__ || defined __UCLIBC__)
ASSERT (sa.sa_handler == SIG_DFL);
#endif
break;
sa.sa_handler = SIG_DFL;
ASSERT (sigaction (SIGABRT, &sa, &old_sa) == 0);
ASSERT ((old_sa.sa_flags & SA_SIGINFO) == 0);
-#if !defined __GLIBC__ /* see above */
+#if !(defined __GLIBC__ || defined __UCLIBC__) /* see above */
ASSERT (old_sa.sa_handler == SIG_DFL);
#endif