summaryrefslogtreecommitdiff
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-02-11 02:59:38 +0000
committerEric Anholt <anholt@FreeBSD.org>2006-02-11 02:59:38 +0000
commit91c30771b63ae3498dbcd880930e6faa975c5928 (patch)
tree670d78041aaf8c4c492cfffeeaeb87a7e4d8da88 /src/mesa/main/imports.c
parentf236300e3a79be14da7f417956227bbe8a680e87 (diff)
Add the ability to define NO_LIBCWRAPPER to avoid libcwrapper brain damage.
If it's true that libcwrapper usage isn't necessary ever in the DllLoader world, then this code should probbaly all go away.
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index bf1556fe6f..474b358eb4 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -71,6 +71,14 @@ extern int vsnprintf(char *str, size_t count, const char *fmt, va_list arg);
#endif
#endif
+/* If we don't actually want to use the libcwrapper junk (even though we're
+ * building an Xorg server module), then just undef IN_MODULE to signal that to
+ * the following code. It's left around for now to allow compiling of newish
+ * Mesa with older servers, but this whole mess should go away at some point.
+ */
+#ifdef NO_LIBCWRAPPER
+#undef IN_MODULE
+#endif
/**********************************************************************/
/** \name Memory */