From df7a7857566c98df03cd7914643433b15faab5bc Mon Sep 17 00:00:00 2001 From: Gonéri Le Bouder Date: Mon, 23 Mar 2020 11:13:03 -0400 Subject: 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. --- cloudinit/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') 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() -- cgit v1.2.3