~james-page/ubuntu/precise/nodejs/0.6.x-merge

« back to all changes in this revision

Viewing changes to deps/c-ares/config-win32.h

  • Committer: James Page
  • Date: 2012-03-30 12:09:16 UTC
  • mfrom: (7.1.23 sid)
  • Revision ID: james.page@canonical.com-20120330120916-40hfu9o00qr5t87b
* Merge from Debian unstable:
  - New upstream release (LP: #892034).
  - This package is x86/arm only. Update control to match
  - d/patches/2009_increase_test_timeout.patch: Increased default test
    timeout from 60 to 120 seconds to support reliable execution of all
    tests on armhf/armel architectures.
  - d/patches/2005_expected_failing_tests.patch: 
    - Allow racey tests to fail: test-cluster-kill-workers,
      test-child-process-fork2 
    - Allow test-fs-watch to fail as LP buildd's don't support
      inotify.
    - Revert all other Ubuntu changes as no longer required.
* Update Standards-Version to 3.9.3.
* Patch wscript to enable build on mipsel arch, libv8 being available.
  Upstream does not support that arch, failure expected.
* test-cluster-kill-workers is expected to fail on armhf,
  Bug#660802 will be closed when test pass.
* test-buffer is expected to fail on armel,
  Bug#660800 will be closed when test pass.
* Add epoch to dependency on libev >= 1:4.11. Closes: bug#658441.
* Remove tools/doc because node-doc-generator has no license for now.
* Add copyright for doc/sh* files (shjs).
* source.lintian-overrides : source-contains-waf-binary tools/node-waf
  it is simply not the case here.
* test-stream-pipe-multi expected to timeout sometimes on busy builds. 
* New upstream release.
* Remove upstream patches.
* test-dgram-pingpong expected to timeout, the test itself is buggy.
* test-buffer expected to fail on armel, allow building package to make
  it easier to find the cause of the failure.
  Closes: bug#639636.
* Expect tests dgram-multicast and broadcast to fail.
  debian/patches/2005_expected_failing_tests.patch
* Drop dpkg-source local-options: Defaults since dpkg-source 1.16.1.
* New upstream release.
* Depend on libev-dev 4.11, see bug#657080.
* Bump dependency on openssl to 1.0.0g.
* Remove useless uv_loop_refcount from libuv,
  refreshed 2009_fix_shared_ev.patch.
* Apply to upstream patches landed after 0.6.10 release,
  to fix debugger repl and http client.
* New upstream release. Closes:bug#650661
* Repackage to remove non-dfsg font files ./deps/npm/html/*/*.ttf
* Remove unneeded bundled dependencies: lighter tarball,
  debian/copyright is easier to maintain.
* Drop unneeded build-dependency on scons.
* Depend on zlib1g, libc-ares, libev.
  Patches done to support building with those shared libs.
* Fix DEB_UPSTREAM_URL in debian/rules, and debian/watch.
* nodejs.pc file for pkgconfig is no more available.
* Build-depend on procps package, a test is using /bin/ps.
* Refreshed debian/patches/2005_expected_failing_tests.patch,
  only for tests that need networking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __ARES_CONFIG_WIN32_H
2
 
#define __ARES_CONFIG_WIN32_H
3
 
 
4
 
 
5
 
/* Copyright (C) 2004 - 2008 by Daniel Stenberg et al
6
 
 *
7
 
 * Permission to use, copy, modify, and distribute this software and its
8
 
 * documentation for any purpose and without fee is hereby granted, provided
9
 
 * that the above copyright notice appear in all copies and that both that
10
 
 * copyright notice and this permission notice appear in supporting
11
 
 * documentation, and that the name of M.I.T. not be used in advertising or
12
 
 * publicity pertaining to distribution of the software without specific,
13
 
 * written prior permission.  M.I.T. makes no representations about the
14
 
 * suitability of this software for any purpose.  It is provided "as is"
15
 
 * without express or implied warranty.
16
 
 */
17
 
 
18
 
/* ================================================================ */
19
 
/*    ares/config-win32.h - Hand crafted config file for Windows    */
20
 
/* ================================================================ */
21
 
 
22
 
/* ---------------------------------------------------------------- */
23
 
/*                          HEADER FILES                            */
24
 
/* ---------------------------------------------------------------- */
25
 
 
26
 
/* Define if you have the <getopt.h> header file.  */
27
 
#if defined(__MINGW32__) || defined(__POCC__)
28
 
#define HAVE_GETOPT_H 1
29
 
#endif
30
 
 
31
 
/* Define if you have the <limits.h> header file.  */
32
 
#define HAVE_LIMITS_H 1
33
 
 
34
 
/* Define if you have the <process.h> header file.  */
35
 
#ifndef __SALFORDC__
36
 
#define HAVE_PROCESS_H 1
37
 
#endif
38
 
 
39
 
/* Define if you have the <signal.h> header file. */
40
 
#define HAVE_SIGNAL_H 1
41
 
 
42
 
/* Define if you have the <sys/time.h> header file */
43
 
/* #define HAVE_SYS_TIME_H 1 */
44
 
 
45
 
/* Define if you have the <time.h> header file.  */
46
 
#define HAVE_TIME_H 1
47
 
 
48
 
/* Define if you have the <unistd.h> header file.  */
49
 
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
50
 
    defined(__POCC__)
51
 
#define HAVE_UNISTD_H 1
52
 
#endif
53
 
 
54
 
/* Define if you have the <windows.h> header file.  */
55
 
#define HAVE_WINDOWS_H 1
56
 
 
57
 
/* Define if you have the <winsock.h> header file.  */
58
 
#define HAVE_WINSOCK_H 1
59
 
 
60
 
/* Define if you have the <winsock2.h> header file.  */
61
 
#ifndef __SALFORDC__
62
 
#define HAVE_WINSOCK2_H 1
63
 
#endif
64
 
 
65
 
/* Define if you have the <ws2tcpip.h> header file.  */
66
 
#ifndef __SALFORDC__
67
 
#define HAVE_WS2TCPIP_H 1
68
 
#endif
69
 
 
70
 
/* ---------------------------------------------------------------- */
71
 
/*                        OTHER HEADER INFO                         */
72
 
/* ---------------------------------------------------------------- */
73
 
 
74
 
/* Define if sig_atomic_t is an available typedef. */
75
 
#define HAVE_SIG_ATOMIC_T 1
76
 
 
77
 
/* Define if you have the ANSI C header files.  */
78
 
#define STDC_HEADERS 1
79
 
 
80
 
/* Define if you can safely include both <sys/time.h> and <time.h>.  */
81
 
/* #define TIME_WITH_SYS_TIME 1 */
82
 
 
83
 
/* ---------------------------------------------------------------- */
84
 
/*                             FUNCTIONS                            */
85
 
/* ---------------------------------------------------------------- */
86
 
 
87
 
/* Define if you have the closesocket function.  */
88
 
#define HAVE_CLOSESOCKET 1
89
 
 
90
 
/* Define if you have the gethostname function.  */
91
 
#define HAVE_GETHOSTNAME 1
92
 
 
93
 
/* Define if you have the ioctlsocket function. */
94
 
#define HAVE_IOCTLSOCKET 1
95
 
 
96
 
/* Define if you have a working ioctlsocket FIONBIO function. */
97
 
#define HAVE_IOCTLSOCKET_FIONBIO 1
98
 
 
99
 
/* Define if you have the strcasecmp function. */
100
 
/* #define HAVE_STRCASECMP 1 */
101
 
 
102
 
/* Define if you have the strdup function. */
103
 
#define HAVE_STRDUP 1
104
 
 
105
 
/* Define if you have the stricmp function. */
106
 
#define HAVE_STRICMP 1
107
 
 
108
 
/* Define if you have the strncasecmp function. */
109
 
/* #define HAVE_STRNCASECMP 1 */
110
 
 
111
 
/* Define if you have the strnicmp function. */
112
 
#define HAVE_STRNICMP 1
113
 
 
114
 
/* Define if you have the recv function. */
115
 
#define HAVE_RECV 1
116
 
 
117
 
/* Define to the type of arg 1 for recv. */
118
 
#define RECV_TYPE_ARG1 SOCKET
119
 
 
120
 
/* Define to the type of arg 2 for recv. */
121
 
#define RECV_TYPE_ARG2 char *
122
 
 
123
 
/* Define to the type of arg 3 for recv. */
124
 
#define RECV_TYPE_ARG3 int
125
 
 
126
 
/* Define to the type of arg 4 for recv. */
127
 
#define RECV_TYPE_ARG4 int
128
 
 
129
 
/* Define to the function return type for recv. */
130
 
#define RECV_TYPE_RETV int
131
 
 
132
 
/* Define if you have the recvfrom function. */
133
 
#define HAVE_RECVFROM 1
134
 
 
135
 
/* Define to the type of arg 1 for recvfrom. */
136
 
#define RECVFROM_TYPE_ARG1 SOCKET
137
 
 
138
 
/* Define to the type pointed by arg 2 for recvfrom. */
139
 
#define RECVFROM_TYPE_ARG2 char
140
 
 
141
 
/* Define to the type of arg 3 for recvfrom. */
142
 
#define RECVFROM_TYPE_ARG3 int
143
 
 
144
 
/* Define to the type of arg 4 for recvfrom. */
145
 
#define RECVFROM_TYPE_ARG4 int
146
 
 
147
 
/* Define to the type pointed by arg 5 for recvfrom. */
148
 
#define RECVFROM_TYPE_ARG5 struct sockaddr
149
 
 
150
 
/* Define to the type pointed by arg 6 for recvfrom. */
151
 
#define RECVFROM_TYPE_ARG6 int
152
 
 
153
 
/* Define to the function return type for recvfrom. */
154
 
#define RECVFROM_TYPE_RETV int
155
 
 
156
 
/* Define if you have the send function. */
157
 
#define HAVE_SEND 1
158
 
 
159
 
/* Define to the type of arg 1 for send. */
160
 
#define SEND_TYPE_ARG1 SOCKET
161
 
 
162
 
/* Define to the type qualifier of arg 2 for send. */
163
 
#define SEND_QUAL_ARG2 const
164
 
 
165
 
/* Define to the type of arg 2 for send. */
166
 
#define SEND_TYPE_ARG2 char *
167
 
 
168
 
/* Define to the type of arg 3 for send. */
169
 
#define SEND_TYPE_ARG3 int
170
 
 
171
 
/* Define to the type of arg 4 for send. */
172
 
#define SEND_TYPE_ARG4 int
173
 
 
174
 
/* Define to the function return type for send. */
175
 
#define SEND_TYPE_RETV int
176
 
 
177
 
/* Specifics for the Watt-32 tcp/ip stack */
178
 
#ifdef WATT32
179
 
  #define SOCKET              int
180
 
  #define NS_INADDRSZ         4
181
 
  #define HAVE_ARPA_NAMESER_H 1
182
 
  #define HAVE_ARPA_INET_H    1
183
 
  #define HAVE_NETDB_H        1
184
 
  #define HAVE_NETINET_IN_H   1
185
 
  #define HAVE_SYS_SOCKET_H   1
186
 
  #define HAVE_NETINET_TCP_H  1
187
 
  #define HAVE_AF_INET6       1
188
 
  #define HAVE_PF_INET6       1
189
 
  #define HAVE_STRUCT_IN6_ADDR     1
190
 
  #define HAVE_STRUCT_SOCKADDR_IN6 1
191
 
  #undef HAVE_WINSOCK_H
192
 
  #undef HAVE_WINSOCK2_H
193
 
  #undef HAVE_WS2TCPIP_H
194
 
#endif
195
 
 
196
 
/* ---------------------------------------------------------------- */
197
 
/*                       TYPEDEF REPLACEMENTS                       */
198
 
/* ---------------------------------------------------------------- */
199
 
 
200
 
/* Define this if in_addr_t is not an available 'typedefed' type */
201
 
#define in_addr_t unsigned long
202
 
 
203
 
/* Define as the return type of signal handlers (int or void).  */
204
 
#define RETSIGTYPE void
205
 
 
206
 
/* Define ssize_t if it is not an available 'typedefed' type */
207
 
#ifndef _SSIZE_T_DEFINED
208
 
#  if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
209
 
      defined(__POCC__) || \
210
 
      defined(__MINGW32__)
211
 
#  elif defined(_WIN64)
212
 
#    define _SSIZE_T_DEFINED
213
 
#    define ssize_t __int64
214
 
#  else
215
 
#    define _SSIZE_T_DEFINED
216
 
#    define ssize_t int
217
 
#  endif
218
 
#endif
219
 
 
220
 
/* ---------------------------------------------------------------- */
221
 
/*                            TYPE SIZES                            */
222
 
/* ---------------------------------------------------------------- */
223
 
 
224
 
/* The size of `int', as computed by sizeof. */
225
 
#define SIZEOF_INT 4
226
 
 
227
 
/* The size of `short', as computed by sizeof. */
228
 
#define SIZEOF_SHORT 2
229
 
 
230
 
/* The size of `size_t', as computed by sizeof. */
231
 
#if defined(_WIN64)
232
 
#  define SIZEOF_SIZE_T 8
233
 
#else
234
 
#  define SIZEOF_SIZE_T 4
235
 
#endif
236
 
 
237
 
/* ---------------------------------------------------------------- */
238
 
/*                          STRUCT RELATED                          */
239
 
/* ---------------------------------------------------------------- */
240
 
 
241
 
/* Define this if you have struct addrinfo */
242
 
#define HAVE_STRUCT_ADDRINFO 1
243
 
 
244
 
/* Define this if you have struct sockaddr_storage */
245
 
#ifndef __SALFORDC__
246
 
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
247
 
#endif
248
 
 
249
 
/* Define this if you have struct timeval */
250
 
#define HAVE_STRUCT_TIMEVAL 1
251
 
 
252
 
/* ---------------------------------------------------------------- */
253
 
/*                        COMPILER SPECIFIC                         */
254
 
/* ---------------------------------------------------------------- */
255
 
 
256
 
/* Define to avoid VS2005 complaining about portable C functions */
257
 
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
258
 
#define _CRT_SECURE_NO_DEPRECATE 1
259
 
#define _CRT_NONSTDC_NO_DEPRECATE 1
260
 
#endif
261
 
 
262
 
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
263
 
   2000 as a supported build target. VS2008 default installations provide an
264
 
   embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
265
 
   valid build target for VS2008. Popular belief is that binaries built using
266
 
   Windows SDK versions 6.X and Windows 2000 as a build target are functional */
267
 
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
268
 
#  define VS2008_MINIMUM_TARGET 0x0500
269
 
#endif
270
 
 
271
 
/* When no build target is specified VS2008 default build target is Windows
272
 
   Vista, which leaves out even Winsows XP. If no build target has been given
273
 
   for VS2008 we will target the minimum Officially supported build target,
274
 
   which happens to be Windows XP. */
275
 
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
276
 
#  define VS2008_DEFAULT_TARGET  0x0501
277
 
#endif
278
 
 
279
 
/* VS2008 default target settings and minimum build target check */
280
 
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
281
 
#  ifndef _WIN32_WINNT
282
 
#    define _WIN32_WINNT VS2008_DEFAULT_TARGET
283
 
#  endif
284
 
#  ifndef WINVER
285
 
#    define WINVER VS2008_DEFAULT_TARGET
286
 
#  endif
287
 
#  if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || (WINVER < VS2008_MINIMUM_TARGET)
288
 
#    error VS2008 does not support Windows build targets prior to Windows 2000
289
 
#  endif
290
 
#endif
291
 
 
292
 
/* When no build target is specified Pelles C 5.00 and later default build
293
 
   target is Windows Vista. We override default target to be Windows 2000. */
294
 
#if defined(__POCC__) && (__POCC__ >= 500)
295
 
#  ifndef _WIN32_WINNT
296
 
#    define _WIN32_WINNT 0x0500
297
 
#  endif
298
 
#  ifndef WINVER
299
 
#    define WINVER 0x0500
300
 
#  endif
301
 
#endif
302
 
 
303
 
/* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is
304
 
   quite convoluted, compiler dependent and even build target dependent. */
305
 
#if defined(HAVE_WS2TCPIP_H)
306
 
#  if defined(__POCC__)
307
 
#    define HAVE_FREEADDRINFO 1
308
 
#    define HAVE_GETADDRINFO  1
309
 
#    define HAVE_GETNAMEINFO  1
310
 
#  elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
311
 
#    define HAVE_FREEADDRINFO 1
312
 
#    define HAVE_GETADDRINFO  1
313
 
#    define HAVE_GETNAMEINFO  1
314
 
#  elif defined(_MSC_VER) && (_MSC_VER >= 1200)
315
 
#    define HAVE_FREEADDRINFO 1
316
 
#    define HAVE_GETADDRINFO  1
317
 
#    define HAVE_GETNAMEINFO  1
318
 
#  endif
319
 
#endif
320
 
 
321
 
#if defined(__POCC__)
322
 
#  ifndef _MSC_VER
323
 
#    error Microsoft extensions /Ze compiler option is required
324
 
#  endif
325
 
#  ifndef __POCC__OLDNAMES
326
 
#    error Compatibility names /Go compiler option is required
327
 
#  endif
328
 
#endif
329
 
 
330
 
/* ---------------------------------------------------------------- */
331
 
/*                         IPV6 COMPATIBILITY                       */
332
 
/* ---------------------------------------------------------------- */
333
 
 
334
 
/* Define this if you have address family AF_INET6 */
335
 
#ifdef HAVE_WINSOCK2_H
336
 
#define HAVE_AF_INET6 1
337
 
#endif
338
 
 
339
 
/* Define this if you have protocol family PF_INET6 */
340
 
#ifdef HAVE_WINSOCK2_H
341
 
#define HAVE_PF_INET6 1
342
 
#endif
343
 
 
344
 
/* Define this if you have struct in6_addr */
345
 
#ifdef HAVE_WS2TCPIP_H
346
 
#define HAVE_STRUCT_IN6_ADDR 1
347
 
#endif
348
 
 
349
 
/* Define this if you have struct sockaddr_in6 */
350
 
#ifdef HAVE_WS2TCPIP_H
351
 
#define HAVE_STRUCT_SOCKADDR_IN6 1
352
 
#endif
353
 
 
354
 
/* Define this if you have sockaddr_in6 with scopeid */
355
 
#ifdef HAVE_WS2TCPIP_H
356
 
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
357
 
#endif
358
 
 
359
 
 
360
 
#endif  /* __ARES_CONFIG_WIN32_H */