From e564ddcb01c3c11537432faa9c7a7a6badb05930 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Mon, 11 Jul 2016 08:41:21 +1000 Subject: [PATCH] watch: define HOST_NAME_MAX Those infernal arches of kfreebsd-i386 (not -amd64) don't define HOST_NAME_MAX. This patch is a work-around for those systems with lacking include files. --- NEWS | 4 ++++ watch.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index b28bbe40..dd69166e 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +procps-ng-NEXT +---------------- + * watch: define HOST_NAME_MAX where not defined Debian #830734 + procps-ng-3.3.12 ---------------- * libprocps API 6:0:0 diff --git a/watch.c b/watch.c index 24defcf1..69c8fc80 100644 --- a/watch.c +++ b/watch.c @@ -62,6 +62,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)