diff options
Diffstat (limited to 'freebsd/crypto/openssl/apps/rehash.c')
-rw-r--r-- | freebsd/crypto/openssl/apps/rehash.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/freebsd/crypto/openssl/apps/rehash.c b/freebsd/crypto/openssl/apps/rehash.c index b90cd08f..18fd5b14 100644 --- a/freebsd/crypto/openssl/apps/rehash.c +++ b/freebsd/crypto/openssl/apps/rehash.c @@ -1,4 +1,8 @@ #include <machine/rtems-bsd-user-space.h> +#ifdef __rtems__ +#include <machine/rtems-bsd-program.h> +#include "rtems-bsd-openssl-namespace.h" +#endif /* __rtems__ */ /* * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -100,6 +104,10 @@ static int bit_isset(unsigned char *set, unsigned int bit) } +#ifdef __rtems__ +static BUCKET nilbucket; +static HENTRY nilhentry; +#endif /* __rtems__ */ /* * Process an entry; return number of errors. */ @@ -107,8 +115,10 @@ static int add_entry(enum Type type, unsigned int hash, const char *filename, const unsigned char *digest, int need_symlink, unsigned short old_id) { +#ifndef __rtems__ static BUCKET nilbucket; static HENTRY nilhentry; +#endif /* __rtems__ */ BUCKET *bp; HENTRY *ep, *found = NULL; unsigned int ndx = (type + hash) % OSSL_NELEM(hash_table); @@ -512,3 +522,6 @@ int rehash_main(int argc, char **argv) } #endif /* defined(OPENSSL_SYS_UNIX) || defined(__APPLE__) */ +#ifdef __rtems__ +#include "rtems-bsd-openssl-rehash-data.h" +#endif /* __rtems__ */ |