summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/rpki-client/openssl11/unistd.h
blob: 5f7fe2c728522d855839f0e822839dfd24f29e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Public domain
 * compatibility shim for openssl11
 * overloading unistd.h is a ugly guly hack for this issue but works here
 */

#include_next <unistd.h>

#include <openssl/stack.h>

#define CMS_get_version(cms, version) (*(version) = 3, 1)
#define CMS_SignerInfo_get_version(cms, version) (*(version) = 3, 1)

#ifndef DECLARE_STACK_OF
#define DECLARE_STACK_OF DEFINE_STACK_OF
#endif