[55368] trunk/dports/x11/xorg-server-devel/files/tiger.patch

jeremyhu at macports.org jeremyhu at macports.org
Sun Aug 9 16:12:41 PDT 2009


Revision: 55368
          http://trac.macports.org/changeset/55368
Author:   jeremyhu at macports.org
Date:     2009-08-09 16:12:40 -0700 (Sun, 09 Aug 2009)
Log Message:
-----------
xorg-server-devel: Actually ad the patch for the last commit

Added Paths:
-----------
    trunk/dports/x11/xorg-server-devel/files/tiger.patch

Added: trunk/dports/x11/xorg-server-devel/files/tiger.patch
===================================================================
--- trunk/dports/x11/xorg-server-devel/files/tiger.patch	                        (rev 0)
+++ trunk/dports/x11/xorg-server-devel/files/tiger.patch	2009-08-09 23:12:40 UTC (rev 55368)
@@ -0,0 +1,49 @@
+diff --git a/hw/xquartz/X11Controller.h b/hw/xquartz/X11Controller.h
+index 170bccc..a86b20f 100644
+--- a/hw/xquartz/X11Controller.h
++++ b/hw/xquartz/X11Controller.h
+@@ -45,6 +45,16 @@
+ #undef BOOL
+ #endif
+ 
++#ifndef NSINTEGER_DEFINED
++#if __LP64__ || NS_BUILD_32_LIKE_64
++typedef long NSInteger;
++typedef unsigned long NSUInteger;
++#else
++typedef int NSInteger;
++typedef unsigned int NSUInteger;
++#endif
++#endif
++
+ @interface X11Controller : NSObject
+ {
+     IBOutlet NSPanel *prefs_panel;
+diff --git a/hw/xquartz/X11Controller.m b/hw/xquartz/X11Controller.m
+index 9900537..2a533de 100644
+--- a/hw/xquartz/X11Controller.m
++++ b/hw/xquartz/X11Controller.m
+@@ -164,11 +164,7 @@ BOOL xquartz_resetenv_display = NO;
+ 
+       item = (NSMenuItem *) [menu addItemWithTitle:name action:@selector
+ 				  (item_selected:) keyEquivalent:shortcut];
+-#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
+       [item setKeyEquivalentModifierMask:(NSUInteger) windowItemModMask];
+-#else
+-      [item setKeyEquivalentModifierMask:windowItemModMask];
+-#endif
+       [item setTarget:self];
+       [item setTag:i];
+       [item setEnabled:YES];
+@@ -177,11 +173,7 @@ BOOL xquartz_resetenv_display = NO;
+ 				       action:@selector
+ 				       (item_selected:) keyEquivalent:shortcut
+ 				       atIndex:i];
+-#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
+       [item setKeyEquivalentModifierMask:(NSUInteger) windowItemModMask];
+-#else
+-      [item setKeyEquivalentModifierMask:windowItemModMask];
+-#endif
+       [item setTarget:self];
+       [item setTag:i];
+       [item setEnabled:YES];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090809/79fbe97c/attachment.html>


More information about the macports-changes mailing list