From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: Re: [Patch] --with-threads on MinGW Date: Thu, 14 Dec 2006 10:55:23 +1100 Message-ID: <878xhbnyfo.fsf@zip.com.au> References: <457316BF.6090003@web.de> <87veks33jf.fsf@zip.com.au> <457490A5.80601@web.de> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1166054156 11775 80.91.229.10 (13 Dec 2006 23:55:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 23:55:56 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Dec 14 00:55:53 2006 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gudx1-0004SZ-Hu for guile-bugs@m.gmane.org; Thu, 14 Dec 2006 00:55:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gudx0-00048i-Jr for guile-bugs@m.gmane.org; Wed, 13 Dec 2006 18:55:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gudwx-000487-JT for bug-guile@gnu.org; Wed, 13 Dec 2006 18:55:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gudwv-000475-MR for bug-guile@gnu.org; Wed, 13 Dec 2006 18:55:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gudwv-000472-Je for bug-guile@gnu.org; Wed, 13 Dec 2006 18:55:45 -0500 Original-Received: from [61.8.2.215] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gudwv-0002WH-AC for bug-guile@gnu.org; Wed, 13 Dec 2006 18:55:45 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 584255A06B1; Thu, 14 Dec 2006 10:55:43 +1100 (EST) Original-Received: from localhost (ppp245A.dyn.pacific.net.au [61.8.36.90]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 2EA2427423; Thu, 14 Dec 2006 10:55:42 +1100 (EST) Original-Received: from gg by localhost with local (Exim 4.63) (envelope-from ) id 1GudwZ-0007GE-Vw; Thu, 14 Dec 2006 10:55:23 +1100 Original-To: Nils Durner In-Reply-To: <457490A5.80601@web.de> (Nils Durner's message of "Mon, 04 Dec 2006 22:18:29 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3426 Archived-At: --=-=-= Nils Durner writes: > > Pthreads-win32 defines pthread_t as struct. I made the change below to go via a union to pick out some info. Does it look about right? Maybe there's an easier way to pick out the bytes ... --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=configure.in.pthread-timespec.diff --- configure.in.~1.268.2.23.~ 2006-12-03 10:19:27.000000000 +1100 +++ configure.in 2006-12-14 10:10:18.000000000 +1100 @@ -622,10 +622,12 @@ # Reasons for testing: # netdb.h - not in mingw # sys/param.h - not in mingw +# pthread.h - only available with pthreads. ACX_PTHREAD doesn't +# check this specifically, we need it for the timespec test below. # sethostname - the function itself check because it's not in mingw, # the DECL is checked because Solaris 10 doens't have in any header # -AC_CHECK_HEADERS(crypt.h netdb.h sys/param.h sys/resource.h sys/file.h) +AC_CHECK_HEADERS(crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h) AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname) AC_CHECK_DECLS([sethostname]) @@ -1034,17 +1036,22 @@ fi +# On mingw, struct timespec is in . +# AC_MSG_CHECKING(for struct timespec) AC_CACHE_VAL(scm_cv_struct_timespec, AC_TRY_COMPILE([ -#include ], +#include +#if HAVE_PTHREAD_H +#include +#endif], [struct timespec t; t.tv_nsec = 100], scm_cv_struct_timespec="yes", scm_cv_struct_timespec="no")) AC_MSG_RESULT($scm_cv_struct_timespec) if test $scm_cv_struct_timespec = yes; then AC_DEFINE(HAVE_STRUCT_TIMESPEC, 1, - [Define this if your system defines struct timespec via .]) + [Define this if your system defines struct timespec via either or .]) fi #-------------------------------------------------------------------- --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile --=-=-=--