summaryrefslogtreecommitdiffstats
path: root/debian/patches/watch_hostname_max_define
blob: 4bb59b791afde0164d1dbf7bc1c4b4f9006d7c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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)