Skip to content

Copy stub sysdeps files to other OS impls to reduce compile errors.

ToMe25 requested to merge ToMe25/libgtop:stub_copy into master

Copy the new sysdeps files from stub to the other implementations to reduce the amount of build errors on non linux distros.

This is the list of changed impls:

  • OpenBSD(tested)
  • BSD
  • Aix(incomplete)
  • Cygwin
  • Darwin
  • FreeBSD
  • Osf1(incomplete)
  • Solaris(incomplete)
  • Sun4(incomplete)

Building this on OpenBSD now again works without build errors.
(incomplete) means that GLIBTOP_SUID_PROC_WD and GLIBTOP_SUID_PROC_AFFINITY were also missing, and i did not fix this.
This is for two reasons, first it would probably take a considerable amount of time to figure out all the changes necessarry to fix that, and second if they weren't updated in that long they probably aren't used much anyways.

This MR also fixes some glibtop_server.h formatting errors.

Also i added all the new files to libgtop_sysdeps_2_0_la_SOURCES and none to libgtop_sysdeps_suid_2_0_la_SOURCES, because i don't know what the second one is used for.
It seems like for the most part adding them to either does similar things, but idk what the exact differences are.
Also what is in which one is already inconsistent from OS to OS.

Edited by ToMe25

Merge request reports