--- Makerules +++ Makerules @@ -211,13 +211,13 @@ CFLAGS += -DCLUSTER endif ifeq ($(OS),Darwin) HAVE_GLUT := yes - SYS_GLUT_CFLAGS := -Wno-deprecated-declarations + SYS_GLUT_CFLAGS := -Wno-deprecated-declarations -Wno-error=incompatible-pointer-types SYS_GLUT_LIBS := -framework GLUT -framework OpenGL CC = cc - AR = ar + AR = gar LD = ld RANLIB = ranlib ifneq ($(ARCHFLAGS),) --- platform/gl/gl-main.c +++ platform/gl/gl-main.c @@ -41,7 +41,7 @@ #ifndef _WIN32 #include /* for mkdir */ #include /* for getcwd */ -#include /* for posix_spawn */ +#include /* for posix_spawn */ extern char **environ; /* see environ (7) */ #else #include /* for getcwd */ @@ -96,9 +96,6 @@ argv[0] = (char*) browser; argv[1] = (char*) uri; argv[2] = NULL; - err = posix_spawnp(&pid, browser, NULL, NULL, argv, environ); - if (err) - fz_warn(ctx, "cannot spawn browser '%s': %s", browser, strerror(err)); #endif }