Commit 600a0595 authored by Youness Alaoui's avatar Youness Alaoui

Make address.[ch] windows compatible

parent 33e6d766
...@@ -41,10 +41,6 @@ ...@@ -41,10 +41,6 @@
#include <string.h> #include <string.h>
#include <arpa/inet.h>
#include <glib.h>
#include "address.h" #include "address.h"
......
...@@ -38,11 +38,16 @@ ...@@ -38,11 +38,16 @@
#ifndef _ADDRESS_H #ifndef _ADDRESS_H
#define _ADDRESS_H #define _ADDRESS_H
#include <glib.h>
#ifdef G_OS_WIN32
#include <winsock2.h>
#else
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h>
#include <glib.h> #endif
G_BEGIN_DECLS G_BEGIN_DECLS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment