libgtop 2.38.0 fails to build on Darwin
libgtop 2.38.0 fails to build on Darwin due to a missing define in lib/sysdeps.c
:
sysdeps.c:52:1: error: use of undeclared identifier 'GLIBTOP_SUID_PROC_IO'
GLIBTOP_SUID_PROC_IO;
^
1 error generated.
It looks like this was probably introduced in dff7c558; this commit introduces a Linux implementation with a define for the (old name of) the identifier in sysdeps/linux/glibtop_server.h
. A definition was later added for FreeBSD, but not other platforms. Since it's used without an #ifdef
in lib/sysdeps.c
, it looks like it will fail on any non-Linux, non-FreeBSD platform.