Bugzilla – Attachment 11 Details for
Bug 74
Use of sig_atomic_t breaks SunOS4 compile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add configure test for missing sig_atomic_t
sig_atomic.patch (text/plain), 1.36 KB, created by
Dave Dykstra
on 2002-01-23 08:32:29 AEDT
(
hide
)
Description:
Patch to add configure test for missing sig_atomic_t
Filename:
MIME Type:
Creator:
Dave Dykstra
Created:
2002-01-23 08:32:29 AEDT
Size:
1.36 KB
patch
obsolete
>--- configure.ac.O Tue Jan 22 12:34:30 2002 >+++ configure.ac Tue Jan 22 14:15:42 2002 >@@ -1097,6 +1097,20 @@ > AC_DEFINE(HAVE_MODE_T) > fi > >+AC_CACHE_CHECK([for sig_atomic_t], ac_cv_have_sig_atomic_t, [ >+ AC_TRY_COMPILE( >+ [ >+#include <signal.h> >+ ], >+ [ sig_atomic_t foo; foo = 1235; ], >+ [ ac_cv_have_sig_atomic_t="yes" ], >+ [ ac_cv_have_sig_atomic_t="no" ] >+ ) >+]) >+if test "x$ac_cv_have_sig_atomic_t" = "xyes" ; then >+ AC_DEFINE(HAVE_SIG_ATOMIC_T) >+fi >+ > > AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [ > AC_TRY_COMPILE( >--- acconfig.h.O Tue Jan 22 14:18:38 2002 >+++ acconfig.h Tue Jan 22 14:18:52 2002 >@@ -252,6 +252,7 @@ > #undef HAVE_SSIZE_T > #undef HAVE_CLOCK_T > #undef HAVE_MODE_T >+#undef HAVE_SIG_ATOMIC_T > #undef HAVE_PID_T > #undef HAVE_SA_FAMILY_T > #undef HAVE_STRUCT_SOCKADDR_STORAGE >--- defines.h.O Tue Jan 22 14:18:10 2002 >+++ defines.h Tue Jan 22 14:18:31 2002 >@@ -274,6 +274,11 @@ > # define HAVE_MODE_T > #endif /* HAVE_MODE_T */ > >+#ifndef HAVE_SIG_ATOMIC_T >+typedef int sig_atomic_t; >+# define HAVE_SIG_ATOMIC_T >+#endif /* HAVE_SIG_ATOMIC_T */ >+ > #if !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE___SS_FAMILY_IN_SS) > # define ss_family __ss_family > #endif /* !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE_SA_FAMILY_IN_SS) */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 74
: 11