diff options
author | Bruce Evans <bde@FreeBSD.org> | 1996-12-13 13:12:02 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1996-12-13 13:12:02 +0000 |
commit | 621d611a9d9530d3ff0d9741b3b1779afceb8274 (patch) | |
tree | 7e649cd87cad877e587f17e4fc705d9ce406d413 /games/battlestar | |
parent | e408eccfc79b9dbb49f6007cf3dfd55ae6f17bc5 (diff) |
Hack around misuse of reserved names `clock' and and `time' in a different
way. Defining KERNEL before including <sys/time.h> broke when "opt_cpu.h"
was included in a deeply nested header, except in -current where the
problem is masked by a namespace pollution bug in <stdio.h>.
Notes
Notes:
svn path=/head/; revision=20397
Diffstat (limited to 'games/battlestar')
-rw-r--r-- | games/battlestar/com6.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c index 4f24cd37d175..a7fa41ee1818 100644 --- a/games/battlestar/com6.c +++ b/games/battlestar/com6.c @@ -90,12 +90,14 @@ live() } /* - * sigh -- this program thinks "time" is an int. It's easier to not load - * <time.h> than try and fix it. + * sigh -- this program thinks `clock' and `time' are ints. It's easier + * to hack around this than to fix it properly. */ -#define KERNEL +#define clock not_our_clock +#define time not_our_time #include <sys/time.h> -#undef KERNEL +#undef clock +#undef time post(ch) char ch; |