summaryrefslogtreecommitdiff
path: root/src/generic
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2016-06-15 14:53:01 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-06-15 14:54:11 +0900
commit91282b61cb13e64b5072d636d92d78af2c633399 (patch)
tree650e553c7b1df992b364c478717f29dacc3f4496 /src/generic
parente57d2a5106c55dd2d6b2700c54fdd4c47966d6db (diff)
geneirc loader build patches for windows
from T3790 - xcf.diff
Diffstat (limited to 'src/generic')
-rw-r--r--src/generic/evas/common/shmfile.c4
-rw-r--r--src/generic/evas/xcf/common.h4
-rw-r--r--src/generic/evas/xcf/main.c4
3 files changed, 10 insertions, 2 deletions
diff --git a/src/generic/evas/common/shmfile.c b/src/generic/evas/common/shmfile.c
index 538a314..9beb116 100644
--- a/src/generic/evas/common/shmfile.c
+++ b/src/generic/evas/common/shmfile.c
@@ -7,7 +7,9 @@
7#include <sys/types.h> 7#include <sys/types.h>
8#include <unistd.h> 8#include <unistd.h>
9#include <math.h> 9#include <math.h>
10#include <netinet/in.h> 10#ifdef HAVE_NETINET_IN_H
11# include <netinet/in.h>
12#endif
11#include <time.h> 13#include <time.h>
12#include <sys/mman.h> 14#include <sys/mman.h>
13#include <sys/stat.h> 15#include <sys/stat.h>
diff --git a/src/generic/evas/xcf/common.h b/src/generic/evas/xcf/common.h
index 5abaab8..34b0cad 100644
--- a/src/generic/evas/xcf/common.h
+++ b/src/generic/evas/xcf/common.h
@@ -10,7 +10,9 @@
10#include <sys/types.h> 10#include <sys/types.h>
11#include <unistd.h> 11#include <unistd.h>
12#include <math.h> 12#include <math.h>
13#include <netinet/in.h> 13#ifdef HAVE_NETINET_IN_H
14# include <netinet/in.h>
15#endif
14#include <time.h> 16#include <time.h>
15#include <sys/mman.h> 17#include <sys/mman.h>
16#include <sys/stat.h> 18#include <sys/stat.h>
diff --git a/src/generic/evas/xcf/main.c b/src/generic/evas/xcf/main.c
index 8ffa099..4de03f8 100644
--- a/src/generic/evas/xcf/main.c
+++ b/src/generic/evas/xcf/main.c
@@ -49,6 +49,10 @@
49#include "shmfile.h" 49#include "shmfile.h"
50#include "timeout.h" 50#include "timeout.h"
51 51
52#ifdef _WIN32
53# include <winsock2.h> /* for ntohl() */
54#endif
55
52#define FREE(X) { free(X); X = NULL; } 56#define FREE(X) { free(X); X = NULL; }
53 57
54#define TILE_WIDTH 64 58#define TILE_WIDTH 64