]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup.map: include cgroup_get_cgroup_name release-3.1
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 2 Jan 2025 12:58:56 +0000 (12:58 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 10 Jan 2025 18:10:09 +0000 (11:10 -0700)
commitd6eab65904b08d2400e9b5de6b16fd341be57dff
tree9f50fb2b51ac4c11816814b4fa2b44e1fdb2baf1
parent6338bb381ed56c92d541328c829564c01b82b8ff
libcgroup.map: include cgroup_get_cgroup_name

Using cgroup_get_cgroup_name() API, fails with:

gcc -o cgrp_get_cgrp_name cgrp_get_cgrp_name.c -lcgroup
/usr/bin/ld: /tmp/ccIyBv5c.o: in function `main':
cgrp_get_cgrp_name.c:(.text+0xaa): undefined reference to `cgroup_get_cgroup_name'
collect2: error: ld returned 1 exit status

The API was introduced by commit ca32d88ef56b1 ("wrappers: Add a
cgroup_get_cgroup_name API") but missed adding it to libcgroup.map file,
causing the linkage issue. Fix the issue by adding the API at the
libcgroup.map under version it was introduced.

Fixes: https://github.com/libcgroup/libcgroup/issues/459
Reported-by: Ron Nazarov <ron@noisytoot.org>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 861a9369d234739a9a3bcf8419ba6be9c8af40dc)
src/libcgroup.map