File: pthread_stub.patch

package info (click to toggle)
pike8.0 8.0.1738-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 77,656 kB
  • sloc: ansic: 267,537; xml: 186,858; makefile: 3,622; sh: 1,713; cpp: 1,331; awk: 692; lisp: 655; javascript: 468; asm: 242; objc: 240; pascal: 157; perl: 34; sed: 34
file content (17 lines) | stat: -rwxr-xr-x 643 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Detect if pthread_atfork(), although defined, is just a stub
 May be the case on GNU/Hurd.
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Bug-Debian: https://bugs.debian.org/462998

--- a/src/configure.in
+++ b/src/configure.in
@@ -4073,6 +4073,9 @@ pthread_t gazonk;
     AC_MSG_CHECKING(for pthread_atfork)
     AC_CACHE_VAL(pike_cv_have_pthread_atfork,[
       AC_TRY_LINK([#include <pthread.h>
+#if defined(__stub_pthread_atfork) || defined(__stub___pthread_atfork)
+#error pthread_atfork is just a stub
+#endif
         void foo(void) { pthread_atfork(0,0,0); }
       ],[],[
         pike_cv_have_pthread_atfork=yes