Skip to content

Commit 73ce8cd

Browse files
jktjktsamuel-gauthier
authored andcommitted
cffi: fix build failure wrt libyang 6.3.0
Since libyang commit b6ccfc9e0165 ("ly_array UPDATE public API sized array"), libyang.h does not include plugins.h anymore. So the build fails with -Werror, because lyplg_add_extension_plugin() is not declared. Include plugins.h directly. It is present in all supported versions, so nothing changes with older libyang. Closes: #175 Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz> Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>
1 parent 49a1e9a commit 73ce8cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cffi/source.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include <libyang/libyang.h>
7+
#include <libyang/plugins.h>
78
#include <libyang/version.h>
89

910
#if LY_VERSION_MAJOR * 10000 + LY_VERSION_MINOR * 100 + LY_VERSION_MICRO < 50000

0 commit comments

Comments
 (0)