Skip to content

Commit

Permalink
cmake: fix checks for fdatasync() and gethostname()
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 16, 2024
1 parent a027ec5 commit 18410c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,8 @@ if(SDL_LIBC)
bcopy
calloc ceil ceilf copysign copysignf cos cosf
_Exit exp expf
fabs fabsf fdatasync floor floorf fmod fmodf fopen64 free fseeko fseeko64
getenv gethostname
fabs fabsf floor floorf fmod fmodf fopen64 free fseeko fseeko64
getenv
_i64toa index itoa
log log10 log10f logf lround lroundf _ltoa
malloc memcmp memcpy memmove memset modf modff
Expand Down Expand Up @@ -1042,6 +1042,8 @@ if(SDL_LIBC)
cmake_pop_check_state()

if(NOT WINDOWS)
check_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC)
check_symbol_exists(gethostname "unistd.h" HAVE_GETHOSTNAME)
check_symbol_exists(getpagesize "unistd.h" HAVE_GETPAGESIZE)
check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION)
check_symbol_exists(setjmp "setjmp.h" HAVE_SETJMP)
Expand Down

0 comments on commit 18410c0

Please sign in to comment.