meson: allow building all glx without any drivers
[mesa.git] / src / glx / glxconfig.c
index c3e1d5a568044067816f2d662ec74ac8951f20c8..0e1643fcd8f6b6fb3d4935b3588203b820b9f14b 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include <GL/glx.h>
-#include "GL/glxint.h"
 #include <stdlib.h>
 #include <string.h>
 
@@ -230,7 +229,7 @@ glx_config_create_list(unsigned count)
 
    next = &base;
    for (i = 0; i < count; i++) {
-      *next = (struct glx_config *) malloc(size);
+      *next = malloc(size);
       if (*next == NULL) {
         glx_config_destroy_list(base);
         base = NULL;