From 67588f72acb1c0b4d6f99e50da4e5489ec091ec2 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 27 Mar 2023 18:43:50 +0200 Subject: [PATCH] Fix -Wundef warnings due to use of unguarded USE_POSIX_SPAWN --- src/misc/unix/SDL_sysurl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */