sc: copy cache values when clone color conditional format
[LibreOffice.git] / external / python3 / i100492-freebsd.patch.1
blobb2ca1ee7117f04008f70c8e8e087492d476c9050
1 FreeBSD porting fixes, patch by maho@openoffice.org
3 --- Python-3.3.0/Python/thread_pthread.h        2012-11-28 09:00:41.097955124 +0000
4 +++ Python-3.3.0/Python/thread_pthread.h        2012-11-28 09:01:13.018329351 +0000
5 @@ -238,6 +238,9 @@
6  {
7      pthread_t th;
8      int status;
9 +#ifdef __FreeBSD__
10 +       sigset_t set, oset;
11 +#endif
12  #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
13      pthread_attr_t attrs;
14  #endif
15 @@ -277,6 +280,10 @@
16      callback->func = func;
17      callback->arg = arg;
19 +#ifdef __FreeBSD__
20 +       sigfillset(&set);
21 +       SET_THREAD_SIGMASK(SIG_BLOCK, &set, &oset);
22 +#endif
23      status = pthread_create(&th,
24  #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
25                               &attrs,
26 @@ -285,6 +292,9 @@
27  #endif
28                               pythread_wrapper, callback);
30 +#ifdef __FreeBSD__
31 +       SET_THREAD_SIGMASK(SIG_SETMASK, &oset, NULL);
32 +#endif
33  #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
34      pthread_attr_destroy(&attrs);
35  #endif