trivial diff: mercury_trace_external.c portability fix

Fergus Henderson fjh at cs.mu.OZ.AU
Wed May 27 02:34:18 AEST 1998


runtime/mercury_trace_external.c:
        Move the #include of nonportable header files such as
        <arpa/inet.h>, etc. inside the `#ifdef MR_USE_EXTERNAL_DEBUGGER'.

Index: mercury_trace_external.c
===================================================================
RCS file: /home/staff/zs/imp/mercury/runtime/mercury_trace_external.c,v
retrieving revision 1.1
diff -u -u -r1.1 mercury_trace_external.c
--- 1.1	1998/05/16 07:28:24
+++ mercury_trace_external.c	1998/05/26 16:29:44
@@ -21,6 +21,9 @@
 */
 
 #include "mercury_imp.h"
+
+#ifdef MR_USE_EXTERNAL_DEBUGGER
+
 #include "mercury_trace.h"
 #include "mercury_trace_external.h"
 #include "mercury_trace_util.h"
@@ -33,8 +36,6 @@
 #include <arpa/inet.h>
 #include <netinet/in.h>
 #include <netdb.h>
-
-#ifdef MR_USE_EXTERNAL_DEBUGGER
 
 /*
 ** This type must match the definition of classify_request in

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



More information about the developers mailing list