trivial diff: fix bug in mercury_reg_workarounds.c

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Dec 20 12:14:37 AEDT 1998


Estimated hours taken: 0.25

runtime/mercury_reg_workarounds.c:
	Fix a bug: add some missing `#include's that were needed
	for FD_ZERO() on some systems, e.g. mercury.cs.mu.oz.au.

Index: runtime/mercury_reg_workarounds.c
===================================================================
RCS file: /home/staff/zs/imp/mercury/runtime/mercury_reg_workarounds.c,v
retrieving revision 1.1
diff -u -r1.1 mercury_reg_workarounds.c
--- mercury_reg_workarounds.c	1998/12/15 15:08:37	1.1
+++ mercury_reg_workarounds.c	1998/12/20 01:10:02
@@ -10,14 +10,19 @@
 ** by gcc, or asm fragments in the GNU headers.
 */
 
-#include	"mercury_conf.h"
-#include	"mercury_reg_workarounds.h"
+#include "mercury_conf.h"
+#include "mercury_reg_workarounds.h"
 
 #ifdef	MR_CAN_DO_PENDING_IO
+
+#include <sys/types.h>	/* for fd_set and FD_ZERO() */
+#include <sys/time.h>	/* for FD_ZERO() */
+#include <unistd.h>	/* for FD_ZERO() */
+
 void
 MR_fd_zero(fd_set *fdset)
 {
 	FD_ZERO(fdset);
 }
-#endif
 
+#endif /* MR_CAN_DO_PENDING_IO */

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh>  |   but source code lives forever"
PGP: finger fjh at 128.250.37.3        |     -- leaked Microsoft memo.



More information about the developers mailing list