From 1abe6fdec4203f516dc3f25bef0115d32879526c Mon Sep 17 00:00:00 2001 From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> Date: Sun, 16 Jun 2024 22:50:29 +0200 Subject: [PATCH] Fix include sys/resource.h --- src/chanprog.c | 3 --- src/cmds.c | 1 - src/eggdrop.h | 1 + src/main.c | 4 ---- src/mod/pbkdf2.mod/pbkdf2.c | 1 - src/tclhash.c | 1 - 6 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/chanprog.c b/src/chanprog.c index f589593fb..eb5f3d1f6 100644 --- a/src/chanprog.c +++ b/src/chanprog.c @@ -27,10 +27,7 @@ */ #include "main.h" - -#include #include - #include "modules.h" extern struct dcc_t *dcc; diff --git a/src/cmds.c b/src/cmds.c index e1730507a..3ee3f4f3c 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -22,7 +22,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include #include "main.h" #include "tandem.h" #include "modules.h" diff --git a/src/eggdrop.h b/src/eggdrop.h index c91ae91e2..393de019d 100644 --- a/src/eggdrop.h +++ b/src/eggdrop.h @@ -185,6 +185,7 @@ /* Almost every module needs some sort of time thingy, so... */ #include /* gettimeofday() POSIX 2001 */ #include /* POSIX 2001 */ +#include /* getrusage() setrlimit() after time.h because of BSD */ /* Yikes...who would have thought finding a usable random() would be so much * trouble? diff --git a/src/main.c b/src/main.c index 82ed9ef80..6680215d9 100644 --- a/src/main.c +++ b/src/main.c @@ -63,10 +63,6 @@ #include "modules.h" #include "bg.h" -#ifdef DEBUG /* For debug compile */ -# include /* setrlimit() */ -#endif - #ifdef HAVE_GETRANDOM # include #endif diff --git a/src/mod/pbkdf2.mod/pbkdf2.c b/src/mod/pbkdf2.mod/pbkdf2.c index 169d92bc8..ecab28f8c 100644 --- a/src/mod/pbkdf2.mod/pbkdf2.c +++ b/src/mod/pbkdf2.mod/pbkdf2.c @@ -13,7 +13,6 @@ #define MODULE_NAME "encryption2" #include /* base64 encode b64_ntop() and base64 decode b64_pton() */ -#include #include #include diff --git a/src/tclhash.c b/src/tclhash.c index 76d170af8..08d5ee631 100644 --- a/src/tclhash.c +++ b/src/tclhash.c @@ -26,7 +26,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include #include "main.h" extern Tcl_Interp *interp;