~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to lib/setup.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-12 15:04:52 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051212150452-2ymlra67b2p7kjyy
Tags: 7.15.1-1ubuntu1
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
(CVE-2005-4077).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: setup.h,v 1.90 2005/05/07 13:57:07 bagder Exp $
 
23
 * $Id: setup.h,v 1.97 2005/11/24 20:37:13 bagder Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#ifdef HTTP_ONLY
169
169
#endif
170
170
 
171
171
#if defined(ENABLE_IPV6) || defined(USE_SSLEAY)
 
172
#if !defined(_MSC_VER) || (_MSC_VER >= 1300)
172
173
#include <ws2tcpip.h>
173
174
#endif
 
175
#endif
174
176
 
175
177
#if !defined(__GNUC__) || defined(__MINGW32__)
176
178
#define sclose(x) closesocket(x)
198
200
#define sread(x,y,z)      read_s(x,y,z)
199
201
#define swrite(x,y,z)     write_s(x,y,z)
200
202
#define select(n,r,w,x,t) select_s(n,r,w,x,t)
 
203
#define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
201
204
#define IOCTL_3_ARGS
202
205
#include <tcp.h>
203
206
#ifdef word
227
230
#endif
228
231
 
229
232
#define DIR_CHAR      "/"
 
233
#ifndef DOT_CHAR
230
234
#define DOT_CHAR      "."
 
235
#endif
231
236
 
232
237
#ifdef DJGPP
233
238
#undef DOT_CHAR
262
267
#endif
263
268
#endif
264
269
 
 
270
/* "cl -ML" or "cl -MLd" implies a single-threaded runtime library where
 
271
   _beginthreadex() is not available */
 
272
#if defined(_MSC_VER) && !defined(_MT) && !defined(USE_ARES)
 
273
#undef USE_THREADING_GETADDRINFO
 
274
#undef USE_THREADING_GETHOSTBYNAME
 
275
#define CURL_NO__BEGINTHREADEX
 
276
#endif
 
277
 
265
278
#ifdef mpeix
266
279
#define IOCTL_3_ARGS
267
280
#endif
291
304
#define USE_SSL    /* Either OpenSSL || GnuTLS */
292
305
#endif
293
306
 
 
307
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_NTLM)
294
308
#if defined(USE_SSLEAY) || defined(USE_WINDOWS_SSPI)
295
309
#define USE_NTLM
296
310
#endif
 
311
#endif
 
312
 
 
313
#if defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_GOPHER)
 
314
#define CURL_DISABLE_GOPHER
 
315
#endif
297
316
 
298
317
#ifdef CURLDEBUG
299
318
#define DEBUGF(x) x
301
320
#define DEBUGF(x)
302
321
#endif
303
322
 
304
 
#endif /* __CONFIG_H */
 
323
#endif /* __SETUP_H */