summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2011-07-02 02:10:33 +0000
committermrg <mrg@NetBSD.org>2011-07-02 02:10:33 +0000
commit98a4fc6346f602b2e70306c8a0c79c4e984d1009 (patch)
treee14d6af6b6d6f7609dbbfd4e56ee653b89b9c25b /hack
parent40aa1ec02e1bbd2b8ddb649f3d5dff0eeb0e3858 (diff)
downloadbsdgames-darwin-98a4fc6346f602b2e70306c8a0c79c4e984d1009.tar.gz
bsdgames-darwin-98a4fc6346f602b2e70306c8a0c79c4e984d1009.tar.zst
bsdgames-darwin-98a4fc6346f602b2e70306c8a0c79c4e984d1009.zip
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 (limited to 'hack')
-rw-r--r--hack/hack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hack/hack.h b/hack/hack.h
index 21a94c0c..e25390ba 100644
--- a/hack/hack.h
+++ b/hack/hack.h
@@ -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