xlib: 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/mesa/drivers/x11/fakeglx.c

index 3869e94..4fd6d75 100644 (file)
@@ -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;
    }
 }