st/glx: use strdup() instead of _mesa_strdup()
authorBrian Paul <brianp@vmware.com>
Sat, 7 Mar 2015 20:15:22 +0000 (13:15 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 11 Mar 2015 15:34:24 +0000 (09:34 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/gallium/state_trackers/glx/xlib/glx_api.c

index d1bd7602a6ca436c4ce01c7c803f7ce9cd5e4ee8..f9572b7d3b353b29668e84e8a1b29675cefd5364 100644 (file)
@@ -34,6 +34,7 @@
 #include "GL/glx.h"
 
 #include <stdio.h>
+#include <string.h>
 #include <X11/Xmd.h>
 #include <GL/glxproto.h>
 
@@ -644,7 +645,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;
-      ext->name = _mesa_strdup(extName);
+      ext->name = strdup(extName);
       ext->close_display = close_display_callback;
    }
 }