aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-02-15 07:56:44 -0600
committerBrent Cook <busterb@gmail.com>2023-02-15 07:56:44 -0600
commit3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5 (patch)
tree99051bae4bb93a8e36f9560dc39f0b85d52b3f6f /include
parent20fb2bdb1197008f46c080b8539084c69b7a8c92 (diff)
downloadportable-3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5.tar.gz
portable-3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5.tar.bz2
portable-3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5.zip
generate opensslconf.h based on host cpu architecture
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am14
-rw-r--r--include/openssl/opensslconf.h.in15
2 files changed, 29 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index aed6721..26e82fe 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -44,4 +44,18 @@ noinst_HEADERS += compat/sys/time.h
44noinst_HEADERS += compat/sys/types.h 44noinst_HEADERS += compat/sys/types.h
45noinst_HEADERS += compat/sys/uio.h 45noinst_HEADERS += compat/sys/uio.h
46 46
47noinst_HEADERS += arch/aarch64/opensslconf.h
48noinst_HEADERS += arch/alpha/opensslconf.h
49noinst_HEADERS += arch/amd64/opensslconf.h
50noinst_HEADERS += arch/arm/opensslconf.h
51noinst_HEADERS += arch/hppa/opensslconf.h
52noinst_HEADERS += arch/i386/opensslconf.h
53noinst_HEADERS += arch/m88k/opensslconf.h
54noinst_HEADERS += arch/mips64/opensslconf.h
55noinst_HEADERS += arch/powerpc/opensslconf.h
56noinst_HEADERS += arch/powerpc64/opensslconf.h
57noinst_HEADERS += arch/riscv64/opensslconf.h
58noinst_HEADERS += arch/sh/opensslconf.h
59noinst_HEADERS += arch/sparc64/opensslconf.h
60
47include_HEADERS = tls.h 61include_HEADERS = tls.h
diff --git a/include/openssl/opensslconf.h.in b/include/openssl/opensslconf.h.in
new file mode 100644
index 0000000..8842f00
--- /dev/null
+++ b/include/openssl/opensslconf.h.in
@@ -0,0 +1,15 @@
1#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
2#define __attribute__(a)
3#endif
4
5#if defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_NAMESPACE)
6# define LCRYPTO_UNUSED(x)
7# define LCRYPTO_USED(x)
8# define LCRYPTO_ALIAS1(pre, x)
9# define LCRYPTO_ALIAS(x)
10
11# define LSSL_UNUSED(x)
12# define LSSL_USED(x)
13# define LSSL_ALIAS(x)
14#endif /* LIBRESSL_INTERNAL && !LIBRESSL_NAMESPACE */
15