[m-rev.] diff: fix a segfault under cygwin in the grade hlc.par.gc

Peter Ross pro at missioncriticalit.com
Mon Dec 6 02:58:54 AEDT 2004


Hi,


===================================================================


Fix a segfault in the grade hlc.par.gc when using the cygwin pthreads
library.

configure.in:
	Always define GC_WIN32_THREADS when compiling under win32,
	regardless of which c compiler is being used.

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.406
diff -u -r1.406 configure.in
--- configure.in	1 Nov 2004 04:12:21 -0000	1.406
+++ configure.in	5 Dec 2004 15:47:27 -0000
@@ -2331,7 +2331,7 @@
 				LD_LIBFLAGS_FOR_THREADS="/MD"
 				;;
 			*)
-				CFLAGS_FOR_THREADS="-DMR_THREAD_SAFE" ;;
+				CFLAGS_FOR_THREADS="-DGC_WIN32_THREADS -DMR_THREAD_SAFE" ;;
 		esac
 		;;
 


-- 
Software Engineer                                (Work)   +32 2 757 10 15
Mission Critical                                 (Mobile) +32 485 482 559
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list