diff options
Diffstat (limited to 'debian/patches/watch_hostname_max_define')
-rw-r--r-- | debian/patches/watch_hostname_max_define | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/watch_hostname_max_define b/debian/patches/watch_hostname_max_define new file mode 100644 index 0000000..4bb59b7 --- /dev/null +++ b/debian/patches/watch_hostname_max_define @@ -0,0 +1,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) |