diff --git a/src/misc/unix/SDL_sysurl.c b/src/misc/unix/SDL_sysurl.c index 5fbc7cd77f..34a6c8eafa 100644 --- a/src/misc/unix/SDL_sysurl.c +++ b/src/misc/unix/SDL_sysurl.c @@ -28,7 +28,7 @@ #include #include #include -#if USE_POSIX_SPAWN +#ifdef USE_POSIX_SPAWN #include extern char **environ; #endif @@ -37,7 +37,7 @@ int SDL_SYS_OpenURL(const char *url) { const pid_t pid1 = fork(); if (pid1 == 0) { /* child process */ -#if USE_POSIX_SPAWN +#if defined(USE_POSIX_SPAWN) pid_t pid2; const char *args[] = { "xdg-open", url, NULL }; /* Clear LD_PRELOAD so Chrome opens correctly when this application is launched by Steam */