mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00:00
util/time: make NSEC_PER_SEC static
This fixes static linking with libseat. Closes #3072
This commit is contained in:
parent
6f19295647
commit
e5063ef3a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user