all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Wolfgang Jenkner <wjenkner@inode.at>, 20136@debbugs.gnu.org
Subject: bug#20136: 25.0.50; [PATCH] Fix broken libpthread detection
Date: Thu, 19 Mar 2015 18:35:39 -0700	[thread overview]
Message-ID: <550B796B.4000802@cs.ucla.edu> (raw)
In-Reply-To: <85twxgtryk.fsf@iznogoud.viz>

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Wolfgang Jenkner wrote:
> -D_THREAD_SAFE or other flags are not needed on FreeBSD (since 7,
> at least)

OK, thanks, FreeBSD 6 was end-of-lifed some time ago and I assume Darwin is 
similar so I installed the attached simplification.

[-- Attachment #2: 0001-configure.ac-_THREAD_SAFE-Simplify-Bug-20136.patch --]
[-- Type: text/x-patch, Size: 1362 bytes --]

From 84c6c65cb46bb9190fdd098e06e2109cdc7507d9 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 19 Mar 2015 18:33:59 -0700
Subject: [PATCH] * configure.ac (_THREAD_SAFE): Simplify (Bug#20136).

---
 ChangeLog    | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d268ba0..a79863a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,7 @@
 	Better port of pthread usage to FreeBSD
 	* configure.ac (ac_func_list): Omit pthread_sigmask, since
 	we check for that ourselves rather than relying on gnulib.
-	(HAVE_PTHREAD, LIB_PTHREAD, _THREAD_SAFE): Port better to FreeBSD,
+	(HAVE_PTHREAD, LIB_PTHREAD): Port better to FreeBSD,
 	by also checking for pthread_create, pthread_self, pthread_sigmask.
 	Tighten the test for pthread_atfork while we're at it.
 	Fixes: bug#20136
diff --git a/configure.ac b/configure.ac
index 520816b1..40c8d2b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2234,7 +2234,7 @@ if test "$ac_cv_header_pthread_h" && test "$opsys" != "mingw32"; then
       hpux* | sol*)
 	AC_DEFINE([_REENTRANT], 1,
 	  [Define to 1 if your system requires this in multithreaded code.]);;
-      aix4-2 | darwin | freebsd)
+      aix4-2)
 	AC_DEFINE([_THREAD_SAFE], 1,
 	  [Define to 1 if your system requires this in multithreaded code.]);;
     esac
-- 
2.1.0


      reply	other threads:[~2015-03-20  1:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18 15:42 bug#20136: 25.0.50; [PATCH] Fix broken libpthread detection Wolfgang Jenkner
2015-03-19 21:37 ` Paul Eggert
2015-03-20  0:47   ` Wolfgang Jenkner
2015-03-20  1:35     ` Paul Eggert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=550B796B.4000802@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=20136@debbugs.gnu.org \
    --cc=wjenkner@inode.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.