From e5063ef3a3b12d4384595cb0554cf1f84d5be6f8 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 28 Jul 2021 09:40:43 +0300 Subject: [PATCH] util/time: make NSEC_PER_SEC static This fixes static linking with libseat. Closes #3072 --- util/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/time.c b/util/time.c index e1bc2b5c4..06e42b40d 100644 --- a/util/time.c +++ b/util/time.c @@ -4,7 +4,7 @@ #include "util/time.h" -const long NSEC_PER_SEC = 1000000000; +static const long NSEC_PER_SEC = 1000000000; int64_t timespec_to_msec(const struct timespec *a) { return (int64_t)a->tv_sec * 1000 + a->tv_nsec / 1000000;