summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2011-07-20 07:04:30 +0000
committerdholland <dholland@NetBSD.org>2011-07-20 07:04:30 +0000
commit91f08ba2ec9466907efaa6807f0115ad3d5ccf79 (patch)
tree3c9cc429ff575ef36822e28e5bb7576d1ea2779e /hack
parent21966958355fac70b907f15f2ed67f50dd5ddd78 (diff)
downloadbsdgames-darwin-91f08ba2ec9466907efaa6807f0115ad3d5ccf79.tar.gz
bsdgames-darwin-91f08ba2ec9466907efaa6807f0115ad3d5ccf79.tar.zst
bsdgames-darwin-91f08ba2ec9466907efaa6807f0115ad3d5ccf79.zip
Include system headers before private headers. Avoids various possible
symbol conflicts.
Diffstat (limited to 'hack')
-rw-r--r--hack/hack.bones.c8
-rw-r--r--hack/hack.do.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/hack/hack.bones.c b/hack/hack.bones.c
index 49747726..94fda2ff 100644
--- a/hack/hack.bones.c
+++ b/hack/hack.bones.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.bones.c,v 1.8 2009/08/12 07:28:40 dholland Exp $ */
+/* $NetBSD: hack.bones.c,v 1.9 2011/07/20 07:04:30 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,13 +63,13 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.bones.c,v 1.8 2009/08/12 07:28:40 dholland Exp $");
+__RCSID("$NetBSD: hack.bones.c,v 1.9 2011/07/20 07:04:30 dholland Exp $");
#endif /* not lint */
-#include "hack.h"
-#include "extern.h"
#include <fcntl.h>
#include <unistd.h>
+#include "hack.h"
+#include "extern.h"
static char bones[] = "bones_xx";
diff --git a/hack/hack.do.c b/hack/hack.do.c
index d2fe69b5..87d7f8a7 100644
--- a/hack/hack.do.c
+++ b/hack/hack.do.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.do.c,v 1.9 2009/08/12 07:28:40 dholland Exp $ */
+/* $NetBSD: hack.do.c,v 1.10 2011/07/20 07:04:30 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,16 +63,16 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.do.c,v 1.9 2009/08/12 07:28:40 dholland Exp $");
+__RCSID("$NetBSD: hack.do.c,v 1.10 2011/07/20 07:04:30 dholland Exp $");
#endif /* not lint */
/* Contains code for 'd', 'D' (drop), '>', '<' (up, down) and 't' (throw) */
-#include "hack.h"
-#include "extern.h"
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
+#include "hack.h"
+#include "extern.h"
static int drop(struct obj *);