From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Date: Sat, 9 Mar 2024 16:40:20 +0800
Subject: watch_hostname_max_define

---
 src/watch.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/watch.c b/src/watch.c
index 5c159a9..df4e66e 100644
--- a/src/watch.c
+++ b/src/watch.c
@@ -63,6 +63,10 @@
 # define isprint(x) ( (x>=' '&&x<='~') || (x>=0xa0) )
 #endif
 
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 64
+#endif
+
 /* Boolean command line options */
 static int flags;
 #define WATCH_DIFF	(1 << 1)
