mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
freeglut: gcc-4.2 related patch
svn path=/nixpkgs/branches/stdenv-updates/; revision=10159
This commit is contained in:
parent
6e8ff2b24b
commit
9e0a642955
@ -9,4 +9,5 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [x11 mesa];
|
buildInputs = [x11 mesa];
|
||||||
|
patches = ./freeglut-gcc-4.2.patch;
|
||||||
}
|
}
|
||||||
|
13
pkgs/development/libraries/freeglut/freeglut-gcc-4.2.patch
Normal file
13
pkgs/development/libraries/freeglut/freeglut-gcc-4.2.patch
Normal 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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user