Skip to content

Commit 92042ef

Browse files
committed
build: correct case for checks (NFC)
Correct the case for the symbols to be checked. This would previously likely silently fail.
1 parent 09c2ade commit 92042ef

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

CMakeLists.txt

+19-19
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,25 @@ if(ANDROID)
240240
set(USE_POSIX_SEM 1)
241241
endif()
242242

243-
check_symbol_exists(CLOCK_UPTIME "time.h" HAVE_DECL_CLOCK_UPTIME)
244-
check_symbol_exists(CLOCK_UPTIME_FAST "time.h" HAVE_DECL_CLOCK_UPTIME_FAST)
245-
check_symbol_exists(CLOCK_MONOTONIC "time.h" HAVE_DECL_CLOCK_MONOTONIC)
246-
check_symbol_exists(CLOCK_REALTIME "time.h" HAVE_DECL_CLOCK_REALTIME)
247-
check_symbol_exists(CLOCK_MONOTONIC_COARSE "time.h" HAVE_DECL_CLOCK_MONOTONIC_COARSE)
248-
check_symbol_exists(FD_COPY "sys/select.h" HAVE_DECL_FD_COPY)
249-
check_symbol_exists(NOTE_LOWAT "sys/event.h" HAVE_DECL_NOTE_LOWAT)
250-
check_symbol_exists(NOTE_NONE "sys/event.h" HAVE_DECL_NOTE_NONE)
251-
check_symbol_exists(NOTE_REAP "sys/event.h" HAVE_DECL_NOTE_REAP)
252-
check_symbol_exists(NOTE_REVOKE "sys/event.h" HAVE_DECL_NOTE_REVOKE)
253-
check_symbol_exists(NOTE_SIGNAL "sys/event.h" HAVE_DECL_NOTE_SIGNAL)
254-
check_symbol_exists(POSIX_SPAWN_START_SUSPENDED "sys/spawn.h" HAVE_DECL_POSIX_SPAWN_START_SUSPENDED)
255-
check_symbol_exists(SIGEMT "signal.h" HAVE_DECL_SIGEMT)
256-
check_symbol_exists(VQ_DESIRED_DISK "sys/mount.h" HAVE_DECL_VQ_DESIRED_DISK)
257-
check_symbol_exists(VQ_NEARLOWDISK "sys/mount.h" HAVE_DECL_VQ_NEARLOWDISK)
258-
check_symbol_exists(VQ_QUOTA "sys/mount.h" HAVE_DECL_VQ_QUOTA)
259-
check_symbol_exists(VQ_UPDATE "sys/mount.h" HAVE_DECL_VQ_UPDATE)
260-
check_symbol_exists(VQ_VERYLOWDISK "sys/mount.h" HAVE_DECL_VQ_VERYLOWDISK)
261-
check_symbol_exists(VQ_FREE_SPACE_CHANGE "sys/mount.h" HAVE_DECL_VQ_FREE_SPACE_CHANGE)
243+
check_symbol_exists(clock_uptime "time.h" HAVE_DECL_CLOCK_UPTIME)
244+
check_symbol_exists(clock_uptime_fast "time.h" HAVE_DECL_CLOCK_UPTIME_FAST)
245+
check_symbol_exists(clock_monotonic "time.h" HAVE_DECL_CLOCK_MONOTONIC)
246+
check_symbol_exists(clock_realtime "time.h" HAVE_DECL_CLOCK_REALTIME)
247+
check_symbol_exists(clock_monotonic_coarse "time.h" HAVE_DECL_CLOCK_MONOTONIC_COARSE)
248+
check_symbol_exists(fd_copy "sys/select.h" HAVE_DECL_FD_COPY)
249+
check_symbol_exists(note_lowat "sys/event.h" HAVE_DECL_NOTE_LOWAT)
250+
check_symbol_exists(note_none "sys/event.h" HAVE_DECL_NOTE_NONE)
251+
check_symbol_exists(note_reap "sys/event.h" HAVE_DECL_NOTE_REAP)
252+
check_symbol_exists(note_revoke "sys/event.h" HAVE_DECL_NOTE_REVOKE)
253+
check_symbol_exists(note_signal "sys/event.h" HAVE_DECL_NOTE_SIGNAL)
254+
check_symbol_exists(posix_spawn_start_suspended "sys/spawn.h" HAVE_DECL_POSIX_SPAWN_START_SUSPENDED)
255+
check_symbol_exists(sigemt "signal.h" HAVE_DECL_SIGEMT)
256+
check_symbol_exists(vq_desired_disk "sys/mount.h" HAVE_DECL_VQ_DESIRED_DISK)
257+
check_symbol_exists(vq_nearlowdisk "sys/mount.h" HAVE_DECL_VQ_NEARLOWDISK)
258+
check_symbol_exists(vq_quota "sys/mount.h" HAVE_DECL_VQ_QUOTA)
259+
check_symbol_exists(vq_update "sys/mount.h" HAVE_DECL_VQ_UPDATE)
260+
check_symbol_exists(vq_verylowdisk "sys/mount.h" HAVE_DECL_VQ_VERYLOWDISK)
261+
check_symbol_exists(vq_free_space_change "sys/mount.h" HAVE_DECL_VQ_FREE_SPACE_CHANGE)
262262
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
263263
check_symbol_exists(program_invocation_name "errno.h" HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME)
264264
if (HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME)

0 commit comments

Comments
 (0)