[m-rev.] diff: fix #ifdef cut-and-paste bug

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 14 05:39:50 AEDT 2005


Estimated hours taken: 0.25
Branches: main, release

runtime/mercury_prof_time.c:
	Fix a cut-and-paste error pointed out by Sergey Khorev:
	make some #ifdefs match the code that they are enclosing.

Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: runtime/mercury_prof_time.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_prof_time.c,v
retrieving revision 1.5
diff -u -d -r1.5 mercury_prof_time.c
--- runtime/mercury_prof_time.c	18 Feb 2002 07:01:19 -0000	1.5
+++ runtime/mercury_prof_time.c	13 Feb 2005 18:35:03 -0000
@@ -66,7 +66,7 @@
 			MR_time_method = "user-time";
 			break;
 #endif
-#if defined(ITIMER_VIRTUAL) && defined(SIGVTALRM)
+#if defined(ITIMER_PROF) && defined(SIGPROF)
 		case MR_profile_user_plus_system_time:
 			MR_itimer_type = ITIMER_PROF;
 			MR_itimer_sig  = SIGPROF;

-- 
Fergus Henderson                    |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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