Commit e564ddcb authored by Craig Small's avatar Craig Small

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.
parent e0784dda
Pipeline #3682128 passed with stage
in 2 minutes and 13 seconds
procps-ng-NEXT
----------------
* watch: define HOST_NAME_MAX where not defined Debian #830734
procps-ng-3.3.12 procps-ng-3.3.12
---------------- ----------------
* libprocps API 6:0:0 * libprocps API 6:0:0
......
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
# define isprint(x) ( (x>=' '&&x<='~') || (x>=0xa0) ) # define isprint(x) ( (x>=' '&&x<='~') || (x>=0xa0) )
#endif #endif
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX 64
#endif
/* Boolean command line options */ /* Boolean command line options */
static int flags; static int flags;
#define WATCH_DIFF (1 << 1) #define WATCH_DIFF (1 << 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment