util/time: make NSEC_PER_SEC static

This fixes static linking with libseat.

Closes #3072
This commit is contained in:
Dylan Araps 2021-07-28 09:40:43 +03:00 committed by Simon Ser
parent 6f19295647
commit e5063ef3a3
1 changed files with 1 additions and 1 deletions

View File

@ -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;