diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-05 11:26:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-05 11:26:18 +0000 |
commit | bc83770144cc547a917fc27f0f572859ae203fce (patch) | |
tree | dd569a25e9832cdc91838af49f4ad76b4f9b83d1 /src/include | |
parent | 22d94c49ad387d3b7e373a955495ae39362b801a (diff) | |
download | gnunet-bc83770144cc547a917fc27f0f572859ae203fce.tar.gz gnunet-bc83770144cc547a917fc27f0f572859ae203fce.zip |
LRN patch from Mantis #1615
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_common.h | 1 | ||||
-rw-r--r-- | src/include/platform.h | 4 | ||||
-rw-r--r-- | src/include/plibc.h | 5 | ||||
-rw-r--r-- | src/include/winproc.h | 5 |
4 files changed, 11 insertions, 4 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 57008fa08..badb52880 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -138,6 +138,7 @@ typedef int (*GNUNET_FileNameCallback) (void *cls, const char *filename); | |||
138 | */ | 138 | */ |
139 | enum GNUNET_ErrorType | 139 | enum GNUNET_ErrorType |
140 | { | 140 | { |
141 | GNUNET_ERROR_TYPE_NONE = 0, | ||
141 | GNUNET_ERROR_TYPE_ERROR = 1, | 142 | GNUNET_ERROR_TYPE_ERROR = 1, |
142 | GNUNET_ERROR_TYPE_WARNING = 2, | 143 | GNUNET_ERROR_TYPE_WARNING = 2, |
143 | GNUNET_ERROR_TYPE_INFO = 4, | 144 | GNUNET_ERROR_TYPE_INFO = 4, |
diff --git a/src/include/platform.h b/src/include/platform.h index 1b279d123..cc2aa03ae 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -78,6 +78,7 @@ | |||
78 | 78 | ||
79 | #ifdef _MSC_VER | 79 | #ifdef _MSC_VER |
80 | #include <Winsock2.h> | 80 | #include <Winsock2.h> |
81 | #include <ws2tcpip.h> | ||
81 | #else | 82 | #else |
82 | #ifndef MINGW | 83 | #ifndef MINGW |
83 | #include <netdb.h> | 84 | #include <netdb.h> |
@@ -108,6 +109,9 @@ | |||
108 | #include <stdarg.h> | 109 | #include <stdarg.h> |
109 | #include <errno.h> | 110 | #include <errno.h> |
110 | #include <signal.h> | 111 | #include <signal.h> |
112 | #ifdef WINDOWS | ||
113 | #include <malloc.h> /* for alloca(), on other OSes it's in stdlib.h */ | ||
114 | #endif | ||
111 | #ifndef _MSC_VER | 115 | #ifndef _MSC_VER |
112 | #include <unistd.h> /* KLB_FIX */ | 116 | #include <unistd.h> /* KLB_FIX */ |
113 | #endif | 117 | #endif |
diff --git a/src/include/plibc.h b/src/include/plibc.h index 4e3204c98..a59e53de9 100644 --- a/src/include/plibc.h +++ b/src/include/plibc.h | |||
@@ -50,8 +50,9 @@ extern "C" { | |||
50 | #include "langinfo.h" | 50 | #include "langinfo.h" |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #include <windows.h> | 53 | #include <winsock2.h> |
54 | #include <ws2tcpip.h> | 54 | #include <ws2tcpip.h> |
55 | #include <windows.h> | ||
55 | #include <sys/types.h> | 56 | #include <sys/types.h> |
56 | #include <time.h> | 57 | #include <time.h> |
57 | #include <stdio.h> | 58 | #include <stdio.h> |
@@ -334,7 +335,7 @@ BOOL _plibc_CreateShortcut(const char *pszSrc, const char *pszDest); | |||
334 | BOOL _plibc_DereferenceShortcut(char *pszShortcut); | 335 | BOOL _plibc_DereferenceShortcut(char *pszShortcut); |
335 | char *plibc_ChooseDir(char *pszTitle, unsigned long ulFlags); | 336 | char *plibc_ChooseDir(char *pszTitle, unsigned long ulFlags); |
336 | char *plibc_ChooseFile(char *pszTitle, unsigned long ulFlags); | 337 | char *plibc_ChooseFile(char *pszTitle, unsigned long ulFlags); |
337 | long QueryRegistry(HKEY hMainKey, char *pszKey, char *pszSubKey, | 338 | long QueryRegistry(HKEY hMainKey, const char *pszKey, const char *pszSubKey, |
338 | char *pszBuffer, long *pdLength); | 339 | char *pszBuffer, long *pdLength); |
339 | 340 | ||
340 | BOOL __win_IsHandleMarkedAsBlocking(int hHandle); | 341 | BOOL __win_IsHandleMarkedAsBlocking(int hHandle); |
diff --git a/src/include/winproc.h b/src/include/winproc.h index 0298c2d59..595180a96 100644 --- a/src/include/winproc.h +++ b/src/include/winproc.h | |||
@@ -34,8 +34,9 @@ | |||
34 | #include <sys/timeb.h> | 34 | #include <sys/timeb.h> |
35 | #include <time.h> | 35 | #include <time.h> |
36 | #include <dirent.h> | 36 | #include <dirent.h> |
37 | #include <winsock2.h> | ||
38 | #include <ws2tcpip.h> | ||
37 | #include <windows.h> | 39 | #include <windows.h> |
38 | #include <winsock.h> | ||
39 | #include <winerror.h> | 40 | #include <winerror.h> |
40 | #include <iphlpapi.h> | 41 | #include <iphlpapi.h> |
41 | #include <shlobj.h> | 42 | #include <shlobj.h> |
@@ -198,7 +199,7 @@ extern "C" | |||
198 | 199 | ||
199 | BOOL CreateShortcut (const char *pszSrc, const char *pszDest); | 200 | BOOL CreateShortcut (const char *pszSrc, const char *pszDest); |
200 | BOOL DereferenceShortcut (char *pszShortcut); | 201 | BOOL DereferenceShortcut (char *pszShortcut); |
201 | long QueryRegistry (HKEY hMainKey, char *pszKey, char *pszSubKey, | 202 | long QueryRegistry (HKEY hMainKey, const char *pszKey, const char *pszSubKey, |
202 | char *pszBuffer, long *pdLength); | 203 | char *pszBuffer, long *pdLength); |
203 | int ListNICs (void (*callback) (void *, const char *, int), void *cls); | 204 | int ListNICs (void (*callback) (void *, const char *, int), void *cls); |
204 | BOOL AddPathAccessRights (char *lpszFileName, char *lpszAccountName, | 205 | BOOL AddPathAccessRights (char *lpszFileName, char *lpszAccountName, |