Suggested change for watch.c
I need to make the following change to watch.c get it to compile on Solaris.
In .../procps-ng-3.3.12/watch.c, at line 375, replace:
char hostname[HOST_NAME_MAX + 1];
int max_host_name_len = (int) sysconf(_SC_HOST_NAME_MAX); char hostname[max_host_name_len + 1];
Solaris doesn't have HOST_NAME_MAX. Using sysconf provides a hopefully more portable way of doing this.
I realize that procps-ng is full of Linux'y things, so you might not care, but we love watch and package that up on Solaris.