Skip to content

Commit 755fd68

Browse files
AMDmi3sezero
authored andcommitted
Fix include files for fork()
1 parent 9ad5eb2 commit 755fd68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,14 @@ if(SDL2MIXER_CMD)
294294
target_compile_definitions(SDL2_mixer PRIVATE MUSIC_CMD)
295295
set(fork_found OFF)
296296
if(NOT fork_found)
297-
check_symbol_exists(fork sys/unistd.h HAVE_FORK)
297+
check_symbol_exists(fork unistd.h HAVE_FORK)
298298
if(HAVE_FORK)
299299
set(fork_found ON)
300300
target_compile_definitions(SDL2_mixer PRIVATE HAVE_FORK)
301301
endif()
302302
endif()
303303
if(NOT fork_found)
304-
check_symbol_exists(fork sys/unistd.h HAVE_VFORK)
304+
check_symbol_exists(fork unistd.h HAVE_VFORK)
305305
if(HAVE_VFORK)
306306
set(fork_found ON)
307307
target_compile_definitions(SDL2_mixer PRIVATE HAVE_VFORK)

0 commit comments

Comments
 (0)