summaryrefslogtreecommitdiff
path: root/src/adapter
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-12-09 11:27:23 -0600
committerJohn Estabrook <jestabro@vyos.io>2024-12-09 12:50:11 -0600
commit0f65511115a55e6fdfd25a80fbc3bfd3700fbb0a (patch)
treefdaf111721a47cf44e805981c98d33779e00aa2a /src/adapter
parent196fdd7fdf6dcf751b7364c59e34278bfd0193e3 (diff)
downloadvyconf-0f65511115a55e6fdfd25a80fbc3bfd3700fbb0a.tar.gz
vyconf-0f65511115a55e6fdfd25a80fbc3bfd3700fbb0a.zip
T6718: use correct lib name in absence of libvyatta-cfg-dev
An artifact of development was the use of lib name libvyatta-cfg.so for dlopen instead of libyatta-cfg.so.1. The former exists when the libvyatta-cfg-dev package is installed, as it is when vyatta-cfg is built locally. As the dev package is not needed nor used by default builds, correct to the latter lib name, as installed by libvyatta-cfg.
Diffstat (limited to 'src/adapter')
-rw-r--r--src/adapter/vyos1x_adapter.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adapter/vyos1x_adapter.ml b/src/adapter/vyos1x_adapter.ml
index 5835f5a..dedb2cd 100644
--- a/src/adapter/vyos1x_adapter.ml
+++ b/src/adapter/vyos1x_adapter.ml
@@ -1,7 +1,7 @@
open Ctypes
open Foreign
-let libvyatta = Dl.dlopen ~flags:[Dl.RTLD_LAZY] ~filename:"libvyatta-cfg.so"
+let libvyatta = Dl.dlopen ~flags:[Dl.RTLD_LAZY] ~filename:"libvyatta-cfg.so.1"
let cstore_init = foreign ~from:libvyatta "vy_cstore_init" (void @-> returning uint64_t)
let cstore_free = foreign ~from:libvyatta "vy_cstore_free" (uint64_t @-> returning void)