diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-11-25 18:21:40 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-11-25 18:21:40 +0100 |
commit | 9cd69dd64a4edac414af8c9b5ce080f18e544a50 (patch) | |
tree | 1fab0acb82f750f23ce0e5a67714e848c26dbd32 | |
parent | 949e781d8d00e40a1265b158bcf7273a321f02d1 (diff) |
php-pecl-sdl: fix build with php 5.3.3
-rw-r--r-- | sdl-build.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sdl-build.patch b/sdl-build.patch index de85fe5..a1538e7 100644 --- a/sdl-build.patch +++ b/sdl-build.patch @@ -68,3 +68,17 @@ diff -up sdl-0.9.0/php_sdl.c.old sdl-0.9.0/php_sdl.c /* * Local variables: * tab-width: 4 +--- sdl-0.9.0/php_sdl.h.old 2013-11-25 18:18:08.000000000 +0100 ++++ sdl-0.9.0/php_sdl.h 2013-11-25 18:18:34.000000000 +0100 +@@ -156,6 +156,11 @@ + #define SDL_G(v) (sdl_globals.v) + #endif + ++/* ZEND_FE_END exist only in PHP >= 5.3.7 */ ++#ifndef ZEND_FE_END ++#define ZEND_FE_END { NULL, NULL, NULL, 0, 0 } ++#endif ++ + #endif /* PHP_SDL_H */ + + /* |