freeglut: gcc-4.2 related patch

svn path=/nixpkgs/branches/stdenv-updates/; revision=10159
This commit is contained in:
Yury G. Kudryashov 2008-01-16 00:06:31 +00:00
parent 6e8ff2b24b
commit 9e0a642955
2 changed files with 14 additions and 0 deletions

View File

@ -9,4 +9,5 @@ stdenv.mkDerivation {
};
buildInputs = [x11 mesa];
patches = ./freeglut-gcc-4.2.patch;
}

View File

@ -0,0 +1,13 @@
diff -urN freeglut-2.4.0.old/src/freeglut_joystick.c freeglut-2.4.0/src/freeglut_joystick.c
--- freeglut-2.4.0.old/src/freeglut_joystick.c 2007-06-16 03:51:41.000000000 +0000
+++ freeglut-2.4.0/src/freeglut_joystick.c 2007-06-16 03:54:27.000000000 +0000
@@ -1682,9 +1682,6 @@
fgInitialiseJoysticks ();
- if ( !fgJoystick )
- return 0;
-
if ( !fgState.JoysticksInitialised )
return 0;