From 95cfafcd51eb6b8c9f0a80b900bbba4fe1f7de83 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 15 May 2021 15:42:34 +0200 Subject: [PATCH] Include dirent.h by default. --- include/unrealircd.h | 1 + src/crashreport.c | 4 +--- src/modulemanager.c | 1 - src/modules.c | 3 --- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/unrealircd.h b/include/unrealircd.h index 1b7bbbd2c..05e77f0c5 100644 --- a/include/unrealircd.h +++ b/include/unrealircd.h @@ -26,6 +26,7 @@ #else #include #include + #include #endif #include #include diff --git a/src/crashreport.c b/src/crashreport.c index 0f9d414d1..4003419be 100644 --- a/src/crashreport.c +++ b/src/crashreport.c @@ -4,9 +4,7 @@ */ #include "unrealircd.h" -#ifndef _WIN32 -#include -#else +#ifdef _WIN32 extern void StartUnrealAgain(void); #endif #include "version.h" diff --git a/src/modulemanager.c b/src/modulemanager.c index 854f2a038..1165df01a 100644 --- a/src/modulemanager.c +++ b/src/modulemanager.c @@ -6,7 +6,6 @@ #include "unrealircd.h" #ifndef _WIN32 -#include #define MODULEMANAGER_CONNECT_TIMEOUT 7 #define MODULEMANAGER_READ_TIMEOUT 20 diff --git a/src/modules.c b/src/modules.c index df0b07853..a2d14160f 100644 --- a/src/modules.c +++ b/src/modules.c @@ -30,9 +30,6 @@ #else #include #endif -#ifndef _WIN32 -#include -#endif #ifndef RTLD_NOW #define RTLD_NOW RTLD_LAZY #endif