diff options
author | Gonéri Le Bouder <goneri@lebouder.net> | 2020-03-23 11:13:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 11:13:03 -0400 |
commit | df7a7857566c98df03cd7914643433b15faab5bc (patch) | |
tree | c264abb852b81ccae5a35b2a23426bdbf5a6b649 | |
parent | 0173e852a760d2b9a697b5f07330a226839e350b (diff) | |
download | vyos-cloud-init-df7a7857566c98df03cd7914643433b15faab5bc.tar.gz vyos-cloud-init-df7a7857566c98df03cd7914643433b15faab5bc.zip |
bsd: boottime does not depend on the libc soname (#269)
On NetBSD and OpenBSD, the libc soname and location are different. There
is no reason to be to specific. Python is able to propely open the share
library by itself.
-rw-r--r-- | cloudinit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 6c13f3f4..6a641550 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -1839,7 +1839,7 @@ def boottime(): ("tv_sec", ctypes.c_int64), ("tv_usec", ctypes.c_int64) ] - libc = ctypes.CDLL('/lib/libc.so.7') + libc = ctypes.CDLL('libc.so') size = ctypes.c_size_t() size.value = ctypes.sizeof(timeval) buf = timeval() |