~ubuntu-branches/ubuntu/natty/curl/natty-security

« back to all changes in this revision

Viewing changes to lib/config-win32.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
/*                            TYPE SIZES                            */
334
334
/* ---------------------------------------------------------------- */
335
335
 
336
 
/* The number of bytes in a long double.  */
 
336
/* The size of `int', as computed by sizeof. */
 
337
#define SIZEOF_INT 4
 
338
 
 
339
/* The size of `long double', as computed by sizeof. */
337
340
#define SIZEOF_LONG_DOUBLE 16
338
341
 
339
 
/* The number of bytes in a long long.  */
 
342
/* The size of `long long', as computed by sizeof. */
340
343
/* #define SIZEOF_LONG_LONG 8 */
341
344
 
 
345
/* The size of `short', as computed by sizeof. */
 
346
#define SIZEOF_SHORT 2
 
347
 
342
348
/* ---------------------------------------------------------------- */
343
349
/*                          STRUCT RELATED                          */
344
350
/* ---------------------------------------------------------------- */
456
462
   quite convoluted, compiler dependent and even build target dependent. */
457
463
#if defined(HAVE_WS2TCPIP_H)
458
464
#  if defined(__POCC__)
459
 
#    define HAVE_FREEADDRINFO 1
460
 
#    define HAVE_GETADDRINFO  1
461
 
#    define HAVE_GETNAMEINFO  1
 
465
#    define HAVE_FREEADDRINFO           1
 
466
#    define HAVE_GETADDRINFO            1
 
467
#    define HAVE_GETADDRINFO_THREADSAFE 1
 
468
#    define HAVE_GETNAMEINFO            1
462
469
#  elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
463
 
#    define HAVE_FREEADDRINFO 1
464
 
#    define HAVE_GETADDRINFO  1
465
 
#    define HAVE_GETNAMEINFO  1
 
470
#    define HAVE_FREEADDRINFO           1
 
471
#    define HAVE_GETADDRINFO            1
 
472
#    define HAVE_GETADDRINFO_THREADSAFE 1
 
473
#    define HAVE_GETNAMEINFO            1
466
474
#  elif defined(_MSC_VER) && (_MSC_VER >= 1200)
467
 
#    define HAVE_FREEADDRINFO 1
468
 
#    define HAVE_GETADDRINFO  1
469
 
#    define HAVE_GETNAMEINFO  1
 
475
#    define HAVE_FREEADDRINFO           1
 
476
#    define HAVE_GETADDRINFO            1
 
477
#    define HAVE_GETADDRINFO_THREADSAFE 1
 
478
#    define HAVE_GETNAMEINFO            1
470
479
#  endif
471
480
#endif
472
481
 
504
513
#endif
505
514
 
506
515
/* ---------------------------------------------------------------- */
 
516
/*                       DNS RESOLVER SPECIALTY                     */
 
517
/* ---------------------------------------------------------------- */
 
518
 
 
519
/*
 
520
 * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS
 
521
 */
 
522
 
 
523
/* Define USE_ARES to enable c-ares asynchronous DNS lookups */
 
524
/* #define USE_ARES 1 */
 
525
 
 
526
/* Define USE_THREADS_WIN32 to enable threaded asynchronous DNS lookups */
 
527
#define USE_THREADS_WIN32 1
 
528
 
 
529
#if defined(USE_ARES) && defined(USE_THREADS_WIN32)
 
530
#  error "Only one DNS lookup specialty may be defined at most"
 
531
#endif
 
532
 
 
533
/* ---------------------------------------------------------------- */
507
534
/*                           LDAP SUPPORT                           */
508
535
/* ---------------------------------------------------------------- */
509
536
 
510
537
#if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
511
 
#undef CURL_LDAP_HYBRID
512
538
#undef CURL_LDAP_WIN
513
539
#define HAVE_LDAP_SSL_H 1
514
540
#define HAVE_LDAP_URL_PARSE 1
515
541
#elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
516
 
#undef CURL_LDAP_HYBRID
517
542
#undef CURL_LDAP_WIN
518
543
#define HAVE_LDAP_URL_PARSE 1
519
544
#else
520
 
#undef CURL_LDAP_HYBRID
521
545
#undef HAVE_LDAP_URL_PARSE
522
546
#define CURL_LDAP_WIN 1
523
547
#endif