diff src/haptic/linux/SDL_syshaptic.c @ 3218:81773a1eac83

Patch from David Carre: I fixed a bug in the "SDL_DestroyRenderer()" function in the pandora x11 renderer (in fact the bug was in the "X11_GLES_MakeCurrent()" function) that was causing a crash when exiting SDL. There was a problem while terminating the x11 egl window, that was preventing to quit/close SDL/SDL-window then reload SDL/SDL-window inside the same application.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 30 Jul 2009 14:53:57 +0000
parents 4094b4f1c3a1
children 7c18b38f0f9a
line wrap: on
line diff
--- a/src/haptic/linux/SDL_syshaptic.c	Sun Jul 19 08:04:59 2009 +0000
+++ b/src/haptic/linux/SDL_syshaptic.c	Thu Jul 30 14:53:57 2009 +0000
@@ -35,6 +35,7 @@
 #include <limits.h>             /* INT_MAX */
 #include <errno.h>              /* errno, strerror */
 #include <math.h>               /* atan2 */
+#include <sys/stat.h>           /* stat */
 
 /* Just in case. */
 #ifndef M_PI