|
37 | 37 | | solaris | x64 | solaris64-x86_64-gcc | o |
|
38 | 38 | | freebsd | ia32 | BSD-x86 | o |
|
39 | 39 | | freebsd | x64 | BSD-x86_64 | o |
|
| 40 | + | netbsd | ia32 | BSD-x86 | o | |
| 41 | + | netbsd | x64 | BSD-x86_64 | o | |
40 | 42 | | openbsd | ia32 | BSD-x86 | - |
|
41 | 43 | | openbsd | x64 | BSD-x86_64 | - |
|
42 | 44 | | others | others | linux-elf | - |
|
|
51 | 53 | | mac | __APPLE__ && __MACH__ |
|
52 | 54 | | solaris | __sun |
|
53 | 55 | | freebsd | __FreeBSD__ |
|
| 56 | + | netbsd | __NetBSD__ | |
54 | 57 | | openbsd | __OpenBSD__ |
|
55 | 58 | | linux (not andorid)| __linux__ && !__ANDROID__ |
|
56 | 59 | | android | __ANDROID__ |
|
|
94 | 97 | # define OPENSSL_LINUX 1
|
95 | 98 | #endif
|
96 | 99 |
|
| 100 | +#undef OPENSSL_BSD |
| 101 | +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) |
| 102 | +# define OPENSSL_BSD 1 |
| 103 | +#endif |
| 104 | + |
97 | 105 | #if defined(OPENSSL_LINUX) && defined(__i386__)
|
98 | 106 | # include "./archs/linux-elf/opensslconf.h"
|
99 | 107 | #elif defined(OPENSSL_LINUX) && defined(__ILP32__)
|
|
112 | 120 | # include "./archs/VC-WIN32/opensslconf.h"
|
113 | 121 | #elif defined(_WIN32) && defined(_M_X64)
|
114 | 122 | # include "./archs/VC-WIN64A/opensslconf.h"
|
115 |
| -#elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__i386__) |
| 123 | +#elif defined(OPENSSL_BSD) && defined(__i386__) |
116 | 124 | # include "./archs/BSD-x86/opensslconf.h"
|
117 |
| -#elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__x86_64__) |
| 125 | +#elif defined(OPENSSL_BSD) && defined(__x86_64__) |
118 | 126 | # include "./archs/BSD-x86_64/opensslconf.h"
|
119 | 127 | #elif defined(__sun) && defined(__i386__)
|
120 | 128 | # include "./archs/solaris-x86-gcc/opensslconf.h"
|
|
0 commit comments