summaryrefslogtreecommitdiffstats
path: root/src/xtime.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-27 16:11:40 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commite19f2a8a4b3103134f06e5f8e5b59b61488c885f (patch)
treec606a90cfbd24c4ebe69e7c8c49bea9a5c9b7c18 /src/xtime.c
parent386fc8817e637fdd52c20e4ace6cc4ea1f1186ed (diff)
downloadbfs-e19f2a8a4b3103134f06e5f8e5b59b61488c885f.tar.xz
prelude: Define __SANITIZE_*__
Diffstat (limited to 'src/xtime.c')
-rw-r--r--src/xtime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xtime.c b/src/xtime.c
index df8fd61..4828119 100644
--- a/src/xtime.c
+++ b/src/xtime.c
@@ -5,7 +5,6 @@
#include "xtime.h"
#include "bfstd.h"
#include "diag.h"
-#include "sanity.h"
#include <errno.h>
#include <limits.h>
#include <sys/time.h>
@@ -36,7 +35,7 @@ int xmktime(struct tm *tm, time_t *timep) {
}
// FreeBSD is missing an interceptor
-#if BFS_HAS_TIMEGM && !(__FreeBSD__ && SANITIZE_MEMORY)
+#if BFS_HAS_TIMEGM && !(__FreeBSD__ && __SANITIZE_MEMORY__)
int xtimegm(struct tm *tm, time_t *timep) {
time_t time = timegm(tm);