summary refs log tree commit diff
path: root/pkgs/games/gltron/gentoo-prototypes.patch
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-07-07 21:44:09 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-07-07 21:44:09 +0000
commit6b701731ecb4623c924889dfd1cb896959a83269 (patch)
tree579466f00fca0068a549bbfe6f980253031bebf3 /pkgs/games/gltron/gentoo-prototypes.patch
parent26dc245fb2a3681b4a2c9f17313a490716dce5f3 (diff)
downloadnixpkgs-6b701731ecb4623c924889dfd1cb896959a83269.tar
nixpkgs-6b701731ecb4623c924889dfd1cb896959a83269.tar.gz
nixpkgs-6b701731ecb4623c924889dfd1cb896959a83269.tar.bz2
nixpkgs-6b701731ecb4623c924889dfd1cb896959a83269.tar.lz
nixpkgs-6b701731ecb4623c924889dfd1cb896959a83269.tar.xz
nixpkgs-6b701731ecb4623c924889dfd1cb896959a83269.tar.zst
nixpkgs-6b701731ecb4623c924889dfd1cb896959a83269.zip
Adding gltron.
svn path=/nixpkgs/trunk/; revision=22519
Diffstat (limited to 'pkgs/games/gltron/gentoo-prototypes.patch')
-rw-r--r--pkgs/games/gltron/gentoo-prototypes.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/games/gltron/gentoo-prototypes.patch b/pkgs/games/gltron/gentoo-prototypes.patch
new file mode 100644
index 00000000000..71078ae553f
--- /dev/null
+++ b/pkgs/games/gltron/gentoo-prototypes.patch
@@ -0,0 +1,27 @@
+Taken from:
+http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-action/gltron/files/gltron-0.70-prototypes.patch?revision=1.1&view=markup
+
+scripting.h declares these params as const so make sure they're the same.
+
+--- a/nebu/scripting/scripting.c
++++ b/nebu/scripting/scripting.c
+@@ -169,16 +169,16 @@
+   return status;
+ }    
+ 
+-void scripting_RunFile(char *name) {
++void scripting_RunFile(const char *name) {
+   lua_dofile(L, name);
+ }
+ 
+-void scripting_Run(char *command) {
++void scripting_Run(const char *command) {
+   /* fprintf(stderr, "[command] %s\n", command); */
+   lua_dostring(L, command);
+ }
+ 
+-void scripting_RunFormat(char *format, ... ) {
++void scripting_RunFormat(const char *format, ... ) {
+   char buf[4096];
+   va_list ap;
+   va_start(ap, format);