diff --git a/examples/first.c b/examples/first.c index 2853eb2a..d65657e3 100644 --- a/examples/first.c +++ b/examples/first.c @@ -33,6 +33,7 @@ #define PROFILE_COUNT 1 #endif +#ifdef HAVE_LINUX_TABLE #include #include #include @@ -40,6 +41,7 @@ #include _syscall3 (int, table, int, type, union table *, tbl, const void *, param); +#endif int main (int argc, char *argv []) diff --git a/examples/second.c b/examples/second.c index 423111ab..4ebffe1f 100644 --- a/examples/second.c +++ b/examples/second.c @@ -29,6 +29,16 @@ #include #include +#ifdef HAVE_LINUX_TABLE +#include +#include +#include + +#include + +_syscall3 (int, table, int, type, union table *, tbl, const void *, param); +#endif + int main (int argc, char *argv []) { diff --git a/examples/third.c b/examples/third.c index 261ba8c3..f5d41c0d 100644 --- a/examples/third.c +++ b/examples/third.c @@ -32,6 +32,16 @@ void main_prog(int argc, char *argv[]); +#ifdef HAVE_LINUX_TABLE +#include +#include +#include + +#include + +_syscall3 (int, table, int, type, union table *, tbl, const void *, param); +#endif + int main (int argc, char *argv[]) { diff --git a/lib/.cvsignore b/lib/.cvsignore index 221fbc2f..27fc4990 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -32,3 +32,4 @@ sysinfo.lo uptime.lo write.lo xmalloc.lo +lib.c diff --git a/src/proxy/main.c b/src/proxy/main.c index a71df0a2..dd7cd58d 100644 --- a/src/proxy/main.c +++ b/src/proxy/main.c @@ -36,6 +36,16 @@ #define GET_MAX_FDS() 256 #endif +#ifdef HAVE_LINUX_TABLE +#include +#include +#include + +#include + +_syscall3 (int, table, int, type, union table *, tbl, const void *, param); +#endif + int main(int argc, char *argv[]) { diff --git a/sysdeps/guile/.cvsignore b/sysdeps/guile/.cvsignore index 3956f7f4..80292200 100644 --- a/sysdeps/guile/.cvsignore +++ b/sysdeps/guile/.cvsignore @@ -23,3 +23,4 @@ so_locations swap.lo sysdeps.lo uptime.lo +guile.c diff --git a/sysdeps/guile/Makefile.am b/sysdeps/guile/Makefile.am index 50372156..ed83e8e0 100644 --- a/sysdeps/guile/Makefile.am +++ b/sysdeps/guile/Makefile.am @@ -14,12 +14,6 @@ CFLAGS = -Wall -W @CFLAGS@ lib_LTLIBRARIES = libgtop_guile.la -libgtop_guile_la_SOURCES = boot.c sysdeps.c cpu.c mem.c swap.c uptime.c \ - loadavg.c shm_limits.c msg_limits.c \ - sem_limits.c proclist.c procstate.c procuid.c \ - proctime.c procmem.c procsignal.c prockernel.c \ - procsegment.c - libgtop_guile_la_SOURCES = guile.c BUILT_SOURCES = guile.c diff --git a/sysdeps/guile/names/.cvsignore b/sysdeps/guile/names/.cvsignore index e5baa455..da876484 100644 --- a/sysdeps/guile/names/.cvsignore +++ b/sysdeps/guile/names/.cvsignore @@ -24,3 +24,4 @@ so_locations swap.lo sysdeps.lo uptime.lo +guile-names.c