From 4f36c74b68759599fe86009be9d54c6ba8d0c652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Wed, 7 Mar 2018 20:47:44 +0100 Subject: [PATCH] Fix build on freebsd and darwin. --- .gitignore | 5 ++++- sysdeps/darwin/glibtop_server.h | 1 + sysdeps/freebsd/glibtop_server.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5446f725..5d981f26 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,9 @@ *.in *.la *.lo +*.new *.o +*.old *.out *.patch *.pot @@ -24,6 +26,7 @@ INSTALL Makefile Makevars.template Rules-quot +\#*\# aclocal.m4 autom4te.cache/ compile @@ -55,6 +58,7 @@ doc/texinfo.tex doc/version.texi examples/affinity examples/df +examples/diskio examples/first examples/free examples/mountlist @@ -70,7 +74,6 @@ examples/smp examples/sysdeps examples/timings examples/wd -examples/diskio gtk-doc.make install-sh lib/GTop-2.0.gir diff --git a/sysdeps/darwin/glibtop_server.h b/sysdeps/darwin/glibtop_server.h index 8cf44c79..92c433ab 100644 --- a/sysdeps/darwin/glibtop_server.h +++ b/sysdeps/darwin/glibtop_server.h @@ -46,6 +46,7 @@ G_BEGIN_DECLS #define GLIBTOP_SUID_PROC_WD (1 << GLIBTOP_SYSDEPS_PROC_WD) #define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_IO 0 +#define GLIBTOP_SUID_PROC_OPEN_FILES 0 G_END_DECLS diff --git a/sysdeps/freebsd/glibtop_server.h b/sysdeps/freebsd/glibtop_server.h index d908ea7c..86a02eea 100644 --- a/sysdeps/freebsd/glibtop_server.h +++ b/sysdeps/freebsd/glibtop_server.h @@ -48,6 +48,7 @@ G_BEGIN_DECLS #define GLIBTOP_SUID_PROC_WD 0 #define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_IO (1 << GLIBTOP_SYSDEPS_PROC_IO) +#define GLIBTOP_SUID_PROC_OPEN_FILES 0 G_END_DECLS