summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-05-23 23:00:40 +0200
committerJulien Cristau <jcristau@debian.org>2008-05-23 23:01:24 +0200
commite6cbb1e11e5da1a8b9001853c25f4e5a052e7110 (patch)
tree7d6bdcbdae55ca981d6fc60b297bc6125107e8e2
parent6c72961d8fa1ab1543f1b3e2cc7d34ff6d254bf8 (diff)
xfree86: fix build on GNU/kFreeBSD
GNU/kFreeBSD defines __FreeBSD_kernel__, but not __FreeBSD__. Unify preprocessor conditionals between variable declaration and use. Debian bug #482550.
-rw-r--r--hw/xfree86/os-support/bsd/bsd_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/bsd/bsd_init.c b/hw/xfree86/os-support/bsd/bsd_init.c
index 2c6a0256b..83583d5b9 100644
--- a/hw/xfree86/os-support/bsd/bsd_init.c
+++ b/hw/xfree86/os-support/bsd/bsd_init.c
@@ -159,7 +159,7 @@ xf86OpenConsole()
xf86ConsOpen_t *driver;
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
int result;
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
struct utsname uts;
#endif
vtmode_t vtmode;