summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2020-03-23 11:13:03 -0400
committerGitHub <noreply@github.com>2020-03-23 11:13:03 -0400
commitdf7a7857566c98df03cd7914643433b15faab5bc (patch)
treec264abb852b81ccae5a35b2a23426bdbf5a6b649 /cloudinit
parent0173e852a760d2b9a697b5f07330a226839e350b (diff)
downloadvyos-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.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/util.py2
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()