--- a/cnijfilter/src/bjfilter.c	2026-02-28 14:47:55.304254634 +0300
+++ b/cnijfilter/src/bjfilter.c	2026-02-28 14:48:17.714482284 +0300
@@ -51,7 +51,7 @@
 #include "bjfilter.h"
 #include "uitypes.h"
 #include "bjfpath.h"
-
+#include <ctype.h>

 /* function prototypes */
 extern short GetIPCData(LPIPCU pipc, char *sname);
--- a/cnijfilter/src/bjfimage.c	2026-02-28 14:49:52.043942999 +0300
+++ b/cnijfilter/src/bjfimage.c	2026-02-28 14:50:16.889595873 +0300
@@ -26,6 +26,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>

 #include "cpktypes.h"
 #include "cncl.h"
--- a/cnijfilter/src/bjfoption.c	2026-02-28 14:46:44.207674812 +0300
+++ b/cnijfilter/src/bjfoption.c	2026-02-28 14:47:15.920096759 +0300
@@ -42,6 +42,7 @@
 #include "psize.h"
 #include "bjfversion.h"
 #include "bjfpath.h"
+#include <ctype.h>

 short SetCmdOption(int, char **, LPBJF_OPTINFO, LPBJFLTCOLORSYSTEM, LPBJFLTDEVICE, LPCNCLPAPERSIZE, char *, char *, char *);
 static void usage( char * );
--- a/cnijfilter/src/getipc.c	2026-02-28 14:51:10.422761472 +0300
+++ b/cnijfilter/src/getipc.c	2026-02-28 14:52:16.506842032 +0300
@@ -42,7 +42,7 @@
 	struct sockaddr_un		sun;
 	int						s, c;
 	char					buf[128];
-	size_t					adrlen;
+	socklen_t					adrlen;
 	short					ret = RET_ERROR;

 	if ((s = socket(PF_UNIX, SOCK_STREAM, 0)) < 0)

--- a/cnijfilter/src/bjfpos.h	2026-02-28 15:06:50.460988410 +0300
+++ b/cnijfilter/src/bjfpos.h	2026-02-28 15:08:32.478776579 +0300
@@ -83,6 +83,7 @@
 extern void bjf_pos_img_init( LPBJF_POS_IMGINFO lpimginfo );
 extern void bjf_pos_prn_init( LPBJF_POS_PRNINFO lpprninfo );
 extern void bjf_pos_init( LPBJF_POSINFO lpposinfo );
+extern void bjf_margin_init( LPBJF_MARGIN_INFO );
 extern short bjf_pos_imageresolution( LPBJF_POS_IMGINFO, LPBJF_POS_PRNINFO, LPBJF_POSINFO );
 extern short bjf_pos_imageresolution_fit( LPBJF_POS_IMGINFO, LPBJF_POS_PRNINFO, LPBJF_POSINFO );
 extern short bjf_pos_imageresolution_center( LPBJF_POS_IMGINFO, LPBJF_POS_PRNINFO, LPBJF_POSINFO );
@@ -112,6 +113,7 @@
 extern short bjf_pos_set_prnwidth( LPBJF_POS_PRNINFO, long );
 extern short bjf_pos_set_prnheight( LPBJF_POS_PRNINFO, long );

+extern short SetExtLevel( LPBJF_MARGIN_INFO, short);
 extern short SetImageSize( LPBJF_POS_IMGINFO, LPBJF_POS_PRNINFO, LPBJF_POSINFO);
 extern short ImageFitShort( LPBJF_POS_IMGINFO, LPBJF_POS_PRNINFO, LPBJF_POSINFO, LPBJF_MARGIN_INFO );
 extern short ImageFitLong( LPBJF_POS_IMGINFO, LPBJF_POS_PRNINFO, LPBJF_POSINFO, LPBJF_MARGIN_INFO );

--- a/lgmon2/src/keytext.c	2026-02-28 15:10:19.552070597 +0300
+++ b/lgmon2/src/keytext.c	2026-02-28 15:10:00.660987420 +0300
@@ -37,6 +37,7 @@
 #include <unistd.h>
 #include <libxml/parser.h>	/* Ver.2.80 */
 #include <string.h>
+#include <stdlib.h>

 #include "keytext.h"

--- a/cngpij/cngpij/getipc.c	2026-02-28 15:13:12.864420198 +0300
+++ b/cngpij/cngpij/getipc.c	2026-02-28 15:13:25.972489870 +0300
@@ -39,7 +39,7 @@
 	int server_fd;
 	int client_fd;
 	char buf[128];
-	size_t len;
+	socklen_t len;
 	short ret = RET_ERROR;

 	if( (server_fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0 )
