diff -upr libsmi-0.5.0.orig/lib/error.h libsmi-0.5.0/lib/error.h
--- libsmi-0.5.0.orig/lib/error.h	2024-08-28 19:29:57.784814222 +0200
+++ libsmi-0.5.0/lib/error.h	2024-08-28 19:30:37.251483792 +0200
@@ -14,6 +14,7 @@
 #ifndef _ERROR_H
 #define _ERROR_H
 
+#include "smi-check.h"
 #include "smi-data.h"
 #include "errormacros.h" /* list of error macros generated from error.c */
 
diff -upr libsmi-0.5.0.orig/lib/parser-yang.c libsmi-0.5.0/lib/parser-yang.c
--- libsmi-0.5.0.orig/lib/parser-yang.c	2024-08-28 19:29:57.791480888 +0200
+++ libsmi-0.5.0/lib/parser-yang.c	2024-08-28 19:30:44.448150987 +0200
@@ -92,6 +92,7 @@
 #endif
 
 #include "yang.h"
+#include "yang-check.h"
 #include "yang-data.h"
 #include "parser-yang.h"
 #include "scanner-yang.h"
diff -upr libsmi-0.5.0.orig/lib/parser-yang.y libsmi-0.5.0/lib/parser-yang.y
--- libsmi-0.5.0.orig/lib/parser-yang.y	2024-08-28 19:29:57.791480888 +0200
+++ libsmi-0.5.0/lib/parser-yang.y	2024-08-28 19:30:44.451484321 +0200
@@ -35,6 +35,7 @@
 #endif
 
 #include "yang.h"
+#include "yang-check.h"
 #include "yang-data.h"
 #include "parser-yang.h"
 #include "scanner-yang.h"
diff -upr libsmi-0.5.0.orig/lib/yang-data.h libsmi-0.5.0/lib/yang-data.h
--- libsmi-0.5.0.orig/lib/yang-data.h	2024-08-28 19:29:57.801480888 +0200
+++ libsmi-0.5.0/lib/yang-data.h	2024-08-28 19:30:44.451484321 +0200
@@ -164,6 +164,8 @@ int removeYangNode(_YangNode* target, _Y
 
 _YangModuleInfo *createModuleInfo(_YangNode *modulePtr);
 
+void createIdentifierRef(_YangNode *node, char* prefix, char* ident);
+
 void createTypeInfo(_YangNode *node);
 
 _YangNode *findYangModuleByName(const char *modulename, char* revision);
