From: Sangeetha Elumalai <sangeetha.elumalai@timesys.com>
Date: Tue, 24 Nov 2026 12:38:08 +0530

diff --git a/ell/dbus.c b/ell/dbus.c
index bcd9869..0f9dc17 100644
--- a/ell/dbus.c
+++ b/ell/dbus.c
@@ -31,6 +31,10 @@
 #include "useful.h"
 #include "dbus-private.h"
 
+#ifndef MSG_CMSG_CLOEXEC
+#define MSG_CMSG_CLOEXEC	0x40000000
+#endif
+
 #define DEFAULT_SYSTEM_BUS_ADDRESS "unix:path=/var/run/dbus/system_bus_socket"
 
 #define DBUS_SERVICE_DBUS	"org.freedesktop.DBus"
diff --git a/ell/dhcp-transport.c b/ell/dhcp-transport.c
index a210f17..7a42fbb 100644
--- a/ell/dhcp-transport.c
+++ b/ell/dhcp-transport.c
@@ -34,6 +34,10 @@
 #include "time-private.h"
 #include "dhcp-private.h"
 
+#ifndef IP_FREEBIND
+#define IP_FREEBIND	15
+#endif
+
 struct dhcp_default_transport {
 	struct dhcp_transport super;
 	struct l_io *io;
diff --git a/ell/time.c b/ell/time.c
index e124a91..5a63ba0 100644
--- a/ell/time.c
+++ b/ell/time.c
@@ -18,6 +18,10 @@
 #include "random.h"
 #include "private.h"
 
+#ifndef CLOCK_BOOTTIME
+#define CLOCK_BOOTTIME 7
+#endif
+
 uint64_t _time_from_timespec(const struct timespec *ts)
 {
 	return ts->tv_sec * L_USEC_PER_SEC + ts->tv_nsec / L_NSEC_PER_USEC;
diff --git a/src/udev.c b/src/udev.c
index d8adbf0..b8df271 100644
--- a/src/udev.c
+++ b/src/udev.c
@@ -34,6 +34,10 @@
 
 #include "src/module.h"
 
+#ifndef SOL_NETLINK
+#define SOL_NETLINK 270
+#endif
+
 static void receive_props(const void *buf, uint32_t len)
 {
 	const char *action = NULL;
-- 
2.25.1

