Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
deps: fix openssl build on x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Dec 21, 2011
1 parent b24c515 commit a82f538
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion deps/openssl/config/piii/openssl/opensslconf-posix.h
Expand Up @@ -187,11 +187,19 @@
* for debuging the bignum libraries */
#undef SIXTY_FOUR_BIT_LONG
#undef SIXTY_FOUR_BIT
#define THIRTY_TWO_BIT
#undef THIRTY_TWO_BIT
#undef SIXTEEN_BIT
#undef EIGHT_BIT

/* Let's hope ARM never releases a 64 bits CPU... */
#if __x86_64__
# define SIXTY_FOUR_BIT
#else
# define THIRTY_TWO_BIT
#endif

#endif /* defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) */

#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
#define CONFIG_HEADER_RC4_LOCL_H
/* if this is defined data[i] is used instead of *data, this is a %20
Expand All @@ -213,6 +221,10 @@
#define DES_PTR
#endif

#if __x86_64__
#undef DES_PTR
#endif

/* This helps C compiler generate the correct code for multiple functional
* units. It reduces register dependancies at the expense of 2 more
* registers */
Expand Down

0 comments on commit a82f538

Please sign in to comment.