DEVEL15-sig-t-exclude-multiple-20090321
authorDerrick Brashear <shadow@dementia.org>
Sat, 21 Mar 2009 15:39:14 +0000 (15:39 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 21 Mar 2009 15:39:14 +0000 (15:39 +0000)
LICENSE IPL10

disallow multiple typedefs of sig_t

(cherry picked from commit 4bf68765b6d2a04c388ae9a5e6f134c0505a785b)

acinclude.m4

index 9347d68..bd3954a 100644 (file)
@@ -329,7 +329,10 @@ AC_CHECK_TYPES(sig_t, , ,
    #include <signal.h> ])
 AH_BOTTOM(
 [#ifndef HAVE_SIG_T
+#ifndef SIG_T_DEFINED
+#define SIG_T_DEFINED
 typedef RETSIGTYPE (*sig_t) ();
+#endif
 #endif])
 COMPILER_HAS_FUNCTION_MACRO