Author: Dharanendiran <dharanendiran@timesys.com>
Date: Tue, 7 Jul 2026 10:30:19 +0530


---
 support/include/nfslib.h    | 12 ++++++++++++
 support/junction/junction.c |  8 ++++++++
 2 files changed, 20 insertions(+)

diff --git a/support/include/nfslib.h b/support/include/nfslib.h
index c8601a1..5cfa5e9 100644
--- a/support/include/nfslib.h
+++ b/support/include/nfslib.h
@@ -49,6 +49,18 @@
 #define RMTABTMP	"rmtab.tmp"
 #define RMTABLCK	".rmtab.lock"
 
+#ifndef SOL_NETLINK
+#define SOL_NETLINK     270
+#endif
+
+#ifndef NETLINK_EXT_ACK
+#define NETLINK_EXT_ACK 11
+#endif
+
+#ifndef O_PATH
+#define O_PATH 010000000
+#endif
+
 struct state_paths {
 	char *statefn;
 	char *tmpfn;
diff --git a/support/junction/junction.c b/support/junction/junction.c
index c1ec8ff..0e9273c 100644
--- a/support/junction/junction.c
+++ b/support/junction/junction.c
@@ -48,6 +48,14 @@
 #include "junction-internal.h"
 #include "xlog.h"
 
+#ifndef AT_EMPTY_PATH
+#define AT_EMPTY_PATH 0x1000
+#endif
+
+#ifndef AT_NO_AUTOMOUNT
+#define AT_NO_AUTOMOUNT 0x800
+#endif
+
 /**
  * Open a file system object
  *
-- 
2.25.1

