diff --git a/include/glibtop/global.h b/include/glibtop/global.h index 9cbaed8b..1ad60784 100644 --- a/include/glibtop/global.h +++ b/include/glibtop/global.h @@ -51,6 +51,17 @@ # define __P(protos) () #endif +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif + #ifdef HAVE_GUILE #include #endif @@ -67,7 +78,10 @@ #include #include + +#ifdef HAVE_UNISTD_H #include +#endif #ifdef HAVE_MEMORY_H #include @@ -75,7 +89,9 @@ #include #include +#include #include +#include #include #include