aboutsummaryrefslogtreecommitdiff
path: root/util/time.c
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2021-07-28 09:40:43 +0300
committerSimon Ser <contact@emersion.fr>2021-07-28 09:01:59 +0200
commite5063ef3a3b12d4384595cb0554cf1f84d5be6f8 (patch)
tree43c3f848a3c61946c881cddaf067673e29067159 /util/time.c
parent6f19295647fe9a1c0afec96eebd3947f1a52ec2b (diff)
util/time: make NSEC_PER_SEC static
This fixes static linking with libseat. Closes #3072
Diffstat (limited to 'util/time.c')
-rw-r--r--util/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/time.c b/util/time.c
index e1bc2b5c..06e42b40 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;