Author: Dharanendiran <dharanendiran@timesys.com>
Date: Wed, 1 Jun 2022 10:16:35 +0530

---
 include/c.h         | 4 ++++
 sys-utils/unshare.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/include/c.h b/include/c.h
index db0c58b..d878fab 100644
--- a/include/c.h
+++ b/include/c.h
@@ -37,6 +37,10 @@
 # define NAME_MAX PATH_MAX
 #endif
 
+#ifndef O_PATH
+#define O_PATH	010000000
+#endif
+
 /*
  * __GNUC_PREREQ is deprecated in favour of __has_attribute() and
  * __has_feature(). The __has macros are supported by clang and gcc>=5.
diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c
index 5effff6..344234c 100644
--- a/sys-utils/unshare.c
+++ b/sys-utils/unshare.c
@@ -54,6 +54,10 @@
 /* 'private' is kernel default */
 #define UNSHARE_PROPAGATION_DEFAULT	(MS_REC | MS_PRIVATE)
 
+#ifndef CLOCK_BOOTTIME
+#define CLOCK_BOOTTIME 7
+#endif
+
 /* /proc namespace files and mountpoints for binds */
 static struct namespace_file {
 	int		type;		/* CLONE_NEW* */
-- 
2.25.1

