summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2021-07-21 00:23:28 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2021-07-21 00:23:28 +0100
commitf2266d9678d71633d62d70238be3782ea74019c9 (patch)
treee7e9d4977f4683c3d43688f10f562b4a92c525b3
parent56bd806978b0838286c226f93d082d7edd9ae358 (diff)
downloaddnsmasq-f2266d9678d71633d62d70238be3782ea74019c9.tar.gz
Add UINT32_MAX if not defined by system.
-rw-r--r--src/dnsmasq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dnsmasq.h b/src/dnsmasq.h
index 6e20636..7eb5c34 100644
--- a/src/dnsmasq.h
+++ b/src/dnsmasq.h
@@ -166,6 +166,10 @@ extern int capget(cap_user_header_t header, cap_user_data_t data);
#define ADDRSTRLEN INET6_ADDRSTRLEN
+#ifndef UINT32_MAX
+#define UINT32_MAX 0xffffffff
+#endif
+
/* Async event queue */
struct event_desc {
int event, data, msg_sz;