summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1999-05-30 02:47:14 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1999-05-30 02:47:14 +0000
commit4f081102b7647bc4d2cbd38102289bb9f93aad13 (patch)
tree0583f526bd5ed385b67e8eb027abd6869c19aaf6 /games
parent38e32dbd0ac388cd4ee9f335bb5eb94afd4f2c44 (diff)
Only use __attribute__ if __GNUC__ is defined
Diffstat (limited to 'games')
-rw-r--r--games/hunt/hunt/hunt.c5
-rw-r--r--games/hunt/huntd/server.h6
2 files changed, 9 insertions, 2 deletions
diff --git a/games/hunt/hunt/hunt.c b/games/hunt/hunt/hunt.c
index 46934da605e..fa5e50209d3 100644
--- a/games/hunt/hunt/hunt.c
+++ b/games/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hunt.c,v 1.5 1999/03/14 02:07:30 pjanzen Exp $ */
+/* $OpenBSD: hunt.c,v 1.6 1999/05/30 02:47:13 pjanzen Exp $ */
/* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */
/*
* Hunt
@@ -28,6 +28,9 @@
#include "display.h"
#include "client.h"
+#ifndef __GNUC__
+#define __attribute__(x)
+#endif
FLAG Am_monitor = FALSE;
int Socket;
diff --git a/games/hunt/huntd/server.h b/games/hunt/huntd/server.h
index 9731d08da2a..05cb98c680b 100644
--- a/games/hunt/huntd/server.h
+++ b/games/hunt/huntd/server.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.h,v 1.2 1999/02/01 06:53:56 d Exp $ */
+/* $OpenBSD: server.h,v 1.3 1999/05/30 02:47:13 pjanzen Exp $ */
/* $NetBSD: hunt.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */
/*
@@ -10,6 +10,10 @@
#include <stdio.h>
#include <sys/socket.h>
+#ifndef __GNUC__
+#define __attribute__(x)
+#endif
+
/*
* Choose MAXPL and MAXMON carefully. The screen is assumed to be
* 23 lines high and will only tolerate (MAXPL == 17 && MAXMON == 0)