]> git.ipfire.org Git - thirdparty/systemd.git/commit
util: add dlfcn-util.h
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Jun 2020 09:25:46 +0000 (11:25 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Jun 2020 15:23:27 +0000 (17:23 +0200)
commit88d775b734644f26fb490836769c2bc275498fde
tree12d7a1495467b70491ae6a9c789f40bf9d3cbd28
parent69876f94abc3f5861e87ad287b8d1f6770c6fdce
util: add dlfcn-util.h

This just adds a _cleanup_ helper call encapsulating dlclose().

This also means libsystemd-shared is linked against libdl now. I don't
think this is much of an issue, since libdl is part of glibc anyway, and
anything from exotic. It's not an optional part of the OS (think: NSS
requires dynamic linking), hence this pulls in no deps and is almost
certainly loaded into all process' memory anyway.

[zj: use DEFINE_TRIVIAL_CLEANUP_FUNC().]
src/basic/dlfcn-util.h [new file with mode: 0644]
src/basic/meson.build
src/locale/localed.c
src/locale/meson.build