]> Kevux Git Server - kevux-tools/commitdiff
Bugfix: Add _GNU_SOURCE to silence strptime() warnings under some glibc systems.
authorKevin Day <kevin@kevux.org>
Wed, 10 Apr 2024 03:09:15 +0000 (22:09 -0500)
committerKevin Day <kevin@kevux.org>
Wed, 10 Apr 2024 03:09:57 +0000 (22:09 -0500)
data/build/remove/settings

index e12578ec19dd94182a71907171337c95980166f6..8c2ec580443943dab41ec54122fa50796c3bc65f 100644 (file)
@@ -78,6 +78,9 @@ defines -D_libcap_legacy_only_
 defines-threadless -D_di_thread_support_
 defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_
 
+# This is needed for glibc and strptime() usage.
+defines -D_GNU_SOURCE=1
+
 flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces
 flags -fstack-clash-protection -fno-delete-null-pointer-checks
 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now