aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-12-19 11:39:33 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-19 11:39:44 +0100
commitef28eb4720cc80fe78b966ef95e4ce5638650c9e (patch)
tree60929e8d6666bef15f2e8398a259f3dca5d7ca8e
parent218a340d89fb646a365eca8dcabe918b9941440b (diff)
downloadnx-libs-ef28eb4720cc80fe78b966ef95e4ce5638650c9e.tar.gz
nx-libs-ef28eb4720cc80fe78b966ef95e4ce5638650c9e.tar.bz2
nx-libs-ef28eb4720cc80fe78b966ef95e4ce5638650c9e.zip
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.
-rw-r--r--nx-X11/extras/Mesa.patches_6.4.2/4002_no-special-glx-memfunctions.patch11
1 files changed, 6 insertions, 5 deletions
diff --git a/nx-X11/extras/Mesa.patches_6.4.2/4002_no-special-glx-memfunctions.patch b/nx-X11/extras/Mesa.patches_6.4.2/4002_no-special-glx-memfunctions.patch
index 4f6803730..924cbe531 100644
--- a/nx-X11/extras/Mesa.patches_6.4.2/4002_no-special-glx-memfunctions.patch
+++ b/nx-X11/extras/Mesa.patches_6.4.2/4002_no-special-glx-memfunctions.patch
@@ -1,13 +1,14 @@
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 );