~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to syshead.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-06-16 18:33:37 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20110616183337-etb3qgbwjkn8zniq
Tags: upstream-2.2.0
ImportĀ upstreamĀ versionĀ 2.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 * Only include if not during configure
30
30
 */
31
31
#ifndef PACKAGE_NAME
32
 
#ifdef _MSC_VER
33
 
#include "config-win32.h"
34
 
#else
35
32
#include "config.h"
36
33
#endif
37
 
#endif
38
34
 
39
35
/* branch prediction hints */
40
36
#if defined(__GNUC__)
51
47
 
52
48
#ifdef WIN32
53
49
#include <windows.h>
 
50
#include <winsock2.h>
54
51
#define sleep(x) Sleep((x)*1000)
55
52
#define random rand
56
53
#define srandom srand
85
82
#endif
86
83
 
87
84
#ifdef HAVE_SYS_SOCKET_H
 
85
# if defined(TARGET_LINUX) && !defined(_GNU_SOURCE)
 
86
   /* needed for peercred support on glibc-2.8 */
 
87
#  define _GNU_SOURCE
 
88
# endif
88
89
#include <sys/socket.h>
89
90
#endif
90
91
 
536
537
#define ENABLE_BUFFER_LIST
537
538
 
538
539
/*
539
 
 * Do we have pthread capability?
540
 
 */
541
 
#ifdef USE_PTHREAD
542
 
#if defined(USE_CRYPTO) && defined(USE_SSL) && P2MP
543
 
#include <pthread.h>
544
 
#else
545
 
#undef USE_PTHREAD
546
 
#endif
547
 
#endif
548
 
 
549
 
/*
550
 
 * Pthread support is currently experimental (and quite unfinished).
551
 
 */
552
 
#if 1 /* JYFIXME -- if defined, disable pthread */
553
 
#undef USE_PTHREAD
554
 
#endif
555
 
 
556
 
/*
557
540
 * Should we include OCC (options consistency check) code?
558
541
 */
559
542
#ifndef ENABLE_SMALL
661
644
#endif
662
645
 
663
646
/*
 
647
 * Do we support challenge/response authentication, as a console-based client?
 
648
 */
 
649
#define ENABLE_CLIENT_CR
 
650
 
 
651
/*
664
652
 * Do we support pushing peer info?
665
653
 */
666
654
#define ENABLE_PUSH_PEER_INFO