Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix include sys/resource.h #1621

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/chanprog.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
*/

#include "main.h"

#include <sys/resource.h>
#include <sys/utsname.h>

#include "modules.h"

extern struct dcc_t *dcc;
Expand Down
1 change: 0 additions & 1 deletion src/cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include <sys/resource.h>
#include "main.h"
#include "tandem.h"
#include "modules.h"
Expand Down
1 change: 1 addition & 0 deletions src/eggdrop.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
/* Almost every module needs some sort of time thingy, so... */
#include <sys/time.h> /* gettimeofday() POSIX 2001 */
#include <time.h> /* POSIX 2001 */
#include <sys/resource.h> /* getrusage() setrlimit() after time.h because of BSD */

/* Yikes...who would have thought finding a usable random() would be so much
* trouble?
Expand Down
4 changes: 0 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@
#include "modules.h"
#include "bg.h"

#ifdef DEBUG /* For debug compile */
# include <sys/resource.h> /* setrlimit() */
#endif

#ifdef HAVE_GETRANDOM
# include <sys/random.h>
#endif
Expand Down
1 change: 0 additions & 1 deletion src/mod/pbkdf2.mod/pbkdf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#define MODULE_NAME "encryption2"

#include <resolv.h> /* base64 encode b64_ntop() and base64 decode b64_pton() */
#include <sys/resource.h>
#include <openssl/err.h>
#include <openssl/rand.h>

Expand Down
1 change: 0 additions & 1 deletion src/tclhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include <sys/resource.h>
#include "main.h"

extern Tcl_Interp *interp;
Expand Down