GNOME Bugzilla – Bug 553713
libgtop_*_get_proc_affinity() support for NetBSD
Last modified: 2017-05-22 21:28:45 UTC
I noticed that libgtop currently fails to build on NetBSD because of missing proc affinity support on libgtop. NetBSD supports process affinity for some months already, it will be officially added on 5.0. Therefore my patch will work in all versions starting from the current HEAD of this date.
Created attachment 119347 [details] [review] Enable procaffinity.c on sysdeps/bsd/Makefile.am.
Created attachment 119348 [details] The required procaffinity.c file for NetBSD.
Created attachment 119349 [details] [review] Define some GLIBTOP_SUID constants to build procaffinity on NetBSD
This has been in use in pkgsrc for NetBSD since November 2008 - it's probably safe to commit ;-)
(In reply to Patrick Welche from comment #4) > This has been in use in pkgsrc for NetBSD since November 2008 - it's > probably safe to commit ;-) I have pushed these to master, could you please try to build it to make sure nothing is missing, as I don't have a NetBSD at hand.
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.