Commit ef28eb47 authored by Mihai Moldovan's avatar Mihai Moldovan

nx-X11/extras/Mesa.patches_6.4.2/4002_no-special-glx-memfunctions.patch: include…

nx-X11/extras/Mesa.patches_6.4.2/4002_no-special-glx-memfunctions.patch: include stdlib.h and string.h for memset, malloc and free prototypes. Without that they are only implicitly defined - leading to build failures on *SUSE.
parent 218a340d
Description: Turn glx_ansic.h into a no-op include. (by using memset, malloc, free directly)
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Index: Mesa/src/mesa/drivers/dri/common/glcontextmodes.c
===================================================================
--- Mesa.orig/src/mesa/drivers/dri/common/glcontextmodes.c
+++ Mesa/src/mesa/drivers/dri/common/glcontextmodes.c
@@ -48,15 +48,14 @@
--- a/src/mesa/drivers/dri/common/glcontextmodes.c
+++ b/src/mesa/drivers/dri/common/glcontextmodes.c
@@ -44,16 +44,17 @@
# include "GL/glxint.h"
# ifdef XFree86Server
+# include <stdlib.h>
+# include <string.h>
# include "GL/glx_ansic.h"
-extern void * __glXMalloc( size_t size );
-extern void __glXFree( void * ptr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment