6525243 Nevada B58 32-bit Xorg crashes on a VMware VM
authorAlan Coopersmith <Alan.Coopersmith@Sun.COM>
Wed, 21 Feb 2007 17:12:37 -0800
changeset 111 651ef52cedbc
parent 110 8a4b178435bf
child 112 46b8e126f470
6525243 Nevada B58 32-bit Xorg crashes on a VMware VM
open-src/xserver/xorg/Makefile
--- a/open-src/xserver/xorg/Makefile	Wed Feb 21 17:10:42 2007 -0800
+++ b/open-src/xserver/xorg/Makefile	Wed Feb 21 17:12:37 2007 -0800
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.32	07/02/15
+# @(#)Makefile	1.33	07/02/21
 #
 
 PWD:sh=pwd
@@ -220,7 +220,12 @@
 	(cd $(SOURCE_DIR) ;  $(BUILD_ENV) $(MAKE) $(MFLAGS) -e install \
 	 DESTDIR=$(PROTODIR) CPPROG="cp -p" \
 	 pkgconfigdir=/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig )
-	sed 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' $(SOURCE_DIR)/include/xorg-server.h > $(PROTODIR)$(X11_INCLUDES_DIR)/xorg/xorg-server.h
+	sed -e 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' \
+	    -e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\
+#ifdef _LP64\
+#define _XSERVER64 1\
+#endif%' \
+	    $(SOURCE_DIR)/include/xorg-server.h > $(PROTODIR)$(X11_INCLUDES_DIR)/xorg/xorg-server.h
 	mkdir -p $(PROTODIR)$(X11_DOC_DIR)
 	cp -p $(SOURCE_DIR)/hw/xfree86/doc/README.* $(PROTODIR)$(X11_DOC_DIR)/