Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hack include sys/time.h earlier (rather than implicitl...



details:   https://anonhg.NetBSD.org/src/rev/5ad5741e9572
branches:  trunk
changeset: 766791:5ad5741e9572
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 02 02:10:33 2011 +0000

description:
include sys/time.h earlier (rather than implicitly via fcntl.h) so that
the "u" variable doesn't shadow stuff, found later in time.h inlines.

kind of a hack, but i don't want to modify time.h either.

XXX: seems kind of annoying

diffstat:

 games/hack/hack.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 319edbde5468 -r 5ad5741e9572 games/hack/hack.h
--- a/games/hack/hack.h Sat Jul 02 02:09:08 2011 +0000
+++ b/games/hack/hack.h Sat Jul 02 02:10:33 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.h,v 1.13 2009/06/29 23:05:33 dholland Exp $       */
+/*     $NetBSD: hack.h,v 1.14 2011/07/02 02:10:33 mrg Exp $    */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -67,6 +67,7 @@
 #include "config.h"
 #include <stdlib.h>
 #include <string.h>
+#include <sys/time.h>
 
 #ifndef BSD
 #define        index   strchr



Home | Main Index | Thread Index | Old Index