From 15fc56addcc906592af7c0f4c0a5ac906fa5c389 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 8 Nov 2009 20:25:42 -0800 Subject: [PATCH] XQuartz: Buildfix for Leopard and older Signed-off-by: Jeremy Huddleston --- hw/xquartz/X11Controller.h | 4 ++++ hw/xquartz/quartzKeyboard.c | 1 + 2 files changed, 5 insertions(+) diff --git a/hw/xquartz/X11Controller.h b/hw/xquartz/X11Controller.h index bb284472a..9e16f75ce 100644 --- a/hw/xquartz/X11Controller.h +++ b/hw/xquartz/X11Controller.h @@ -55,7 +55,11 @@ typedef unsigned int NSUInteger; #endif #endif +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 @interface X11Controller : NSObject +#else +@interface X11Controller : NSObject +#endif { IBOutlet NSPanel *prefs_panel; diff --git a/hw/xquartz/quartzKeyboard.c b/hw/xquartz/quartzKeyboard.c index 90f66101f..c5047624e 100644 --- a/hw/xquartz/quartzKeyboard.c +++ b/hw/xquartz/quartzKeyboard.c @@ -40,6 +40,7 @@ #define HACK_MISSING 1 #define HACK_KEYPAD 1 +#include #include #include #include