]>
Commit | Line | Data |
---|---|---|
d7837182 TL |
1 | /* osdep.h |
2 | ||
3 | Operating system dependencies... */ | |
4 | ||
5 | /* | |
6 | * Copyright (c) 1995 RadioMail Corporation. All rights reserved. | |
7 | * | |
8 | * Redistribution and use in source and binary forms, with or without | |
9 | * modification, are permitted provided that the following conditions | |
10 | * are met: | |
11 | * | |
12 | * 1. Redistributions of source code must retain the above copyright | |
13 | * notice, this list of conditions and the following disclaimer. | |
14 | * 2. Redistributions in binary form must reproduce the above copyright | |
15 | * notice, this list of conditions and the following disclaimer in the | |
16 | * documentation and/or other materials provided with the distribution. | |
17 | * 3. Neither the name of RadioMail Corporation nor the names of its | |
18 | * contributors may be used to endorse or promote products derived | |
19 | * from this software without specific prior written permission. | |
20 | * | |
21 | * THIS SOFTWARE IS PROVIDED BY RADIOMAIL CORPORATION AND CONTRIBUTORS | |
22 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | |
24 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | |
25 | * RADIOMAIL CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | |
26 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
27 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
28 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
30 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | |
32 | * OF THE POSSIBILITY OF SUCH DAMAGE. | |
33 | * | |
34 | * This software was written for RadioMail Corporation by Ted Lemon | |
35 | * under a contract with Vixie Enterprises, and is based on an earlier | |
36 | * design by Paul Vixie. | |
37 | */ | |
38 | ||
a04c50cd TL |
39 | #include "site.h" |
40 | ||
41 | #if !defined (USE_SOCKETS) && \ | |
42 | !defined (USE_SOCKET_SEND) && \ | |
43 | !defined (USE_SOCKET_RECEIVE) && \ | |
44 | !defined (USE_RAW_SOCKETS) && \ | |
45 | !defined (USE_RAW_SEND) && \ | |
46 | !defined (USE_SOCKET_RECEIVE) && \ | |
47 | !defined (USE_BPF) && \ | |
48 | !defined (USE_BPF_SEND) && \ | |
49 | !defined (USE_BPF_RECEIVE) && \ | |
50 | !defined (USE_NIT) && \ | |
51 | !defined (USE_NIT_SEND) && \ | |
52 | !defined (USE_NIT_RECEIVE) | |
53 | # define USE_DEFAULT_NETWORK | |
54 | #endif | |
55 | ||
56 | ||
d7837182 | 57 | #ifdef sun |
a04c50cd | 58 | # include "cf/sunos4.h" |
d7837182 TL |
59 | #endif |
60 | ||
61 | #ifdef bsdi | |
a04c50cd | 62 | # include "cf/bsdos.h" |
d7837182 TL |
63 | #endif |
64 | ||
65 | #ifdef __NetBSD__ | |
a04c50cd | 66 | # include "cf/netbsd.h" |
d7837182 TL |
67 | #endif |
68 | ||
a8b53b42 | 69 | #ifdef __FreeBSD__ |
a04c50cd | 70 | # include "cf/freebsd.h" |
a8b53b42 TL |
71 | #endif |
72 | ||
73 | #ifdef sun | |
a04c50cd | 74 | # include "cf/sunos4.h" |
a8b53b42 TL |
75 | #endif |
76 | ||
77 | ||
78 | #ifdef ultrix | |
a04c50cd | 79 | # include "cf/ultrix.h" |
a8b53b42 TL |
80 | #endif |
81 | ||
82 | #ifdef linux | |
a04c50cd | 83 | # include "cf/linux.h" |
a8b53b42 | 84 | #endif |
98078fdb TL |
85 | |
86 | #ifdef USE_SOCKETS | |
a04c50cd TL |
87 | # define USE_SOCKET_SEND |
88 | # define USE_SOCKET_RECEIVE | |
98078fdb TL |
89 | #endif |
90 | ||
91 | #ifdef USE_RAW_SOCKETS | |
a04c50cd TL |
92 | # define USE_RAW_SEND |
93 | # define USE_SOCKET_RECEIVE | |
98078fdb TL |
94 | #endif |
95 | ||
96 | #ifdef USE_BPF | |
a04c50cd TL |
97 | # define USE_BPF_SEND |
98 | # define USE_BPF_RECEIVE | |
98078fdb TL |
99 | #endif |
100 | ||
101 | #ifdef USE_NIT | |
a04c50cd TL |
102 | # define USE_NIT_SEND |
103 | # define USE_NIT_RECEIVE | |
98078fdb | 104 | #endif |