diff options
author | Theo Buehler <tb@openbsd.org> | 2022-11-23 18:36:19 +0100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2022-11-23 18:36:19 +0100 |
commit | 38089b559635a425fffb7c421191ec09169f26e8 (patch) | |
tree | bd8177a26332ee47d74f8be82b7e7d95dc313461 /patches/opensslconf.h.patch | |
parent | 67ab6a11877f6d1671da4afa6fbd142bf61a1ed2 (diff) | |
download | portable-38089b559635a425fffb7c421191ec09169f26e8.tar.gz portable-38089b559635a425fffb7c421191ec09169f26e8.tar.bz2 portable-38089b559635a425fffb7c421191ec09169f26e8.zip |
Don't leak namespace macros out of the library
Diffstat (limited to 'patches/opensslconf.h.patch')
-rw-r--r-- | patches/opensslconf.h.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/opensslconf.h.patch b/patches/opensslconf.h.patch index e060a20..ee5d645 100644 --- a/patches/opensslconf.h.patch +++ b/patches/opensslconf.h.patch | |||
@@ -8,7 +8,7 @@ | |||
8 | +#define __attribute__(a) | 8 | +#define __attribute__(a) |
9 | +#endif | 9 | +#endif |
10 | + | 10 | + |
11 | +#ifndef LIBRESSL_NAMESPACE | 11 | +#if defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_NAMESPACE) |
12 | +# define LCRYPTO_UNUSED(x) | 12 | +# define LCRYPTO_UNUSED(x) |
13 | +# define LCRYPTO_USED(x) | 13 | +# define LCRYPTO_USED(x) |
14 | +# define LCRYPTO_ALIAS1(pre, x) | 14 | +# define LCRYPTO_ALIAS1(pre, x) |
@@ -17,7 +17,7 @@ | |||
17 | +# define LSSL_UNUSED(x) | 17 | +# define LSSL_UNUSED(x) |
18 | +# define LSSL_USED(x) | 18 | +# define LSSL_USED(x) |
19 | +# define LSSL_ALIAS(x) | 19 | +# define LSSL_ALIAS(x) |
20 | +#endif /* !LIBRESSL_NAMESPACE */ | 20 | +#endif /* LIBRESSL_INTERNAL && !LIBRESSL_NAMESPACE */ |
21 | + | 21 | + |
22 | #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) | 22 | #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) |
23 | #define OPENSSLDIR "/etc/ssl" | 23 | #define OPENSSLDIR "/etc/ssl" |