summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-06-23 20:07:34 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-06-23 20:07:34 -0700
commitbc6cfde19887eff7a07dc739ffa29609fb55b83d (patch)
treec8b2492d73c31db3b780c63acce78cce51e8fdca /hw
parentc7ac485a59709572307b9a4a9abacc52c7021b65 (diff)
Use correct OSNAME setting so we can find os-specific modules like libdrm.
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/loader/os.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xfree86/loader/os.c b/hw/xfree86/loader/os.c
index 42ab0bc70..83fd24787 100644
--- a/hw/xfree86/loader/os.c
+++ b/hw/xfree86/loader/os.c
@@ -33,10 +33,11 @@
/*
* OSNAME is a standard form of the OS name that may be used by the
- * loader and by OS-specific modules.
+ * loader and by OS-specific modules. OSNAME here is different from what's in
+ * dix-config.h
*/
-#ifndef OSNAME
+#undef OSNAME
#if defined(__linux__)
#define OSNAME "linux"
#elif defined(__FreeBSD__)
@@ -66,7 +67,6 @@
#else
#define OSNAME "unknown"
#endif
-#endif
/* Return the OS name, and run-time OS version */