[Mesa-dev] [PATCH] xlib: use strdup() instead of _mesa_strdup()

Brian Paul brianp at vmware.com
Wed Mar 11 07:12:43 PDT 2015


---
 src/mesa/drivers/x11/fakeglx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 3869e94..4fd6d75 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -40,6 +40,7 @@
  */
 
 
+#include <string.h>
 #include <stdio.h>
 #include "glxheader.h"
 #include "glxapi.h"
@@ -846,7 +847,7 @@ register_with_display(Display *dpy)
       ext = dpy->ext_procs;  /* new extension is at head of list */
       assert(c->extension == ext->codes.extension);
       (void) c; /* silence warning */
-      ext->name = _mesa_strdup(extName);
+      ext->name = strdup(extName);
       ext->close_display = close_display_callback;
    }
 }
-- 
1.9.1



More information about the mesa-dev mailing list