Kaydet (Commit) 067010f7 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #618347: Work around Solaris pthread.h bug.

üst 15404099
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef __APPLE__ #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
#define destructor xxdestructor #define destructor xxdestructor
#endif #endif
#include <pthread.h> #include <pthread.h>
#ifdef __APPLE__ #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
#undef destructor #undef destructor
#endif #endif
#include <signal.h> #include <signal.h>
......
This diff is collapsed.
...@@ -1170,6 +1170,14 @@ pthread_create (NULL, NULL, start_routine, NULL)], [ ...@@ -1170,6 +1170,14 @@ pthread_create (NULL, NULL, start_routine, NULL)], [
OSF1) LDLAST=-threads;; OSF1) LDLAST=-threads;;
esac esac
fi fi
if test "$posix_threads" = yes -a \
"$ac_sys_system" = "SunOS" -a \
"$ac_sys_release" = "5.6"; then
AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1,
[Defined for Solaris 2.6 bug in pthread header.])
fi
fi fi
# Check for enable-ipv6 # Check for enable-ipv6
......
...@@ -750,6 +750,10 @@ ...@@ -750,6 +750,10 @@
/* Define if you have the ieee library (-lieee). */ /* Define if you have the ieee library (-lieee). */
#undef HAVE_LIBIEEE #undef HAVE_LIBIEEE
/* Defined for Solaris 2.6 bug in pthread header. */
#undef HAVE_PTHREAD_DESTRUCTOR
#ifdef __CYGWIN__ #ifdef __CYGWIN__
#ifdef USE_DL_IMPORT #ifdef USE_DL_IMPORT
#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment