Fix the build on Solaris
The following Merge Request (MR) has been forwarded from GitHub in order to prevent the GNOME Project from losing contributions coming from un-official channels. And for contributors to not see their valuable contributions not being accounted for.
Relevant information:
Github handle: niveditharau
MR URL: https://github.com/GNOME/libgtop/pull/1
Patch URL: https://github.com/GNOME/libgtop/pull/1.patch
Body of the MR: