~ubuntu-branches/ubuntu/karmic/vpnc/karmic

« back to all changes in this revision

Viewing changes to sysdep.h

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2007-12-23 15:42:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071223154252-jvgomqxzjc8p22ox
Tags: 0.5.1r275-1
* New upstream SVN snapshot with various bugfixes
* A very very very very urgent "fix" from Nicolas Duboc to put cisco-decrypt
  into /usr/lib/vpnc (closes: #454236)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 * __APPLE__      Darwin / MacOS X
15
15
 * __sun__        SunOS / Solaris
16
16
 * __CYGWIN__
 
17
 * __SKYOS__
17
18
 *
18
19
 */
19
20
 
36
37
int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
37
38
 
38
39
/***************************************************************************/
39
 
#if defined(__linux__)
 
40
#if defined(__linux__) || defined(__GLIBC__)
40
41
#include <error.h>
41
42
 
42
43
#define HAVE_VASPRINTF 1
72
73
#endif
73
74
 
74
75
/***************************************************************************/
 
76
#if defined(__FreeBSD_kernel__)
 
77
#define HAVE_SA_LEN 1
 
78
#endif
 
79
 
 
80
/***************************************************************************/
75
81
#if defined(__FreeBSD__)
76
82
#define HAVE_SA_LEN 1
77
83
 
120
126
const char *inet_ntop(int af, const void *src, char *dst, size_t cnt);
121
127
#endif
122
128
/***************************************************************************/
 
129
#if defined (__SKYOS__)
 
130
#define HAVE_UNSETENV  1
 
131
 
 
132
#ifndef IPPROTO_ENCAP
 
133
#define IPPROTO_ENCAP 4
 
134
#endif
 
135
 
 
136
#ifndef IPPROTO_ESP
 
137
#define IPPROTO_ESP 50
 
138
#endif
 
139
#endif
 
140
/***************************************************************************/
123
141
#if defined (__CYGWIN__)
124
142
#define HAVE_VASPRINTF 1
125
143
#define HAVE_ASPRINTF  1
128
146
#define HAVE_UNSETENV  1
129
147
#define HAVE_SETENV    1
130
148
 
 
149
#ifndef IPPROTO_ESP
131
150
#define IPPROTO_ESP 50
 
151
#endif
 
152
 
 
153
#ifndef IPPROTO_ENCAP
 
154
#define IPPROTO_ENCAP 4
 
155
#endif
 
156
 
132
157
#ifdef IFNAMSIZ
133
158
#undef IFNAMSIZ
134
159
#endif