summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/freeglut/files/freeglut-2.4.0-macos.patch')
-rw-r--r--media-libs/freeglut/files/freeglut-2.4.0-macos.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/media-libs/freeglut/files/freeglut-2.4.0-macos.patch b/media-libs/freeglut/files/freeglut-2.4.0-macos.patch
new file mode 100644
index 000000000000..8a05b94eb70a
--- /dev/null
+++ b/media-libs/freeglut/files/freeglut-2.4.0-macos.patch
@@ -0,0 +1,11 @@
+--- freeglut-2.4.0/src/freeglut_joystick.c.orig 2005-07-02 10:41:52.000000000 +0200
++++ freeglut-2.4.0/src/freeglut_joystick.c 2005-07-02 10:44:17.000000000 +0200
+@@ -1389,7 +1389,7 @@
+ # endif
+ #endif
+
+-#if defined( __linux__ )
++#if defined( __linux__ ) || defined(__APPLE_CC__)
+ /* Default for older Linux systems. */
+ joy->num_axes = 2;
+ joy->num_buttons = 32;