aboutsummaryrefslogtreecommitdiff
path: root/h/rpki/manifest.h
diff options
context:
space:
mode:
Diffstat (limited to 'h/rpki/manifest.h')
-rw-r--r--h/rpki/manifest.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/h/rpki/manifest.h b/h/rpki/manifest.h
index 0e6cd531..5e5ddf67 100644
--- a/h/rpki/manifest.h
+++ b/h/rpki/manifest.h
@@ -44,8 +44,6 @@
#include <openssl/asn1t.h>
#include <openssl/cms.h>
-#include <rpki/sk_manifest.h>
-
/*
* ASN.1 templates. Not sure that ASN1_EXP_OPT() is the right macro
* for these defaulted "version" fields, but it's what the examples
@@ -66,7 +64,12 @@ typedef struct FileAndHash_st {
ASN1_BIT_STRING *hash;
} FileAndHash;
+#ifdef DEFINE_STACK_OF
+DEFINE_STACK_OF(FileAndHash)
+#else
DECLARE_STACK_OF(FileAndHash)
+#include <rpki/sk_manifest.h>
+#endif
ASN1_SEQUENCE(FileAndHash) = {
ASN1_SIMPLE(FileAndHash, file, ASN1_IA5STRING),