diff options
Diffstat (limited to 'libevent/WIN32-Code/win32.c')
| -rw-r--r-- | libevent/WIN32-Code/win32.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libevent/WIN32-Code/win32.c b/libevent/WIN32-Code/win32.c index 701d1c3..867d1f2 100644 --- a/libevent/WIN32-Code/win32.c +++ b/libevent/WIN32-Code/win32.c @@ -25,11 +25,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef _MSC_VER #include "config.h" - -#include <winsock2.h> +#else +/* Avoid the windows/msvc thing. */ +#include "../config.h" +#endif #include <windows.h> +#include <winsock2.h> #include <sys/types.h> #include <sys/queue.h> #include <sys/tree.h> |