Skip to content

Commit

Permalink
Detect endianess on HP-UX
Browse files Browse the repository at this point in the history
HP-UX is not properly detected and classified as little endian. Add test macro
for HP-UX to make it big endian.
  • Loading branch information
michael-o authored and cr-marcstevens committed May 9, 2019
1 parent 1603399 commit 855827c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sha1.c
Expand Up @@ -93,7 +93,7 @@
#define SHA1DC_BIGENDIAN

/* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> */
#elif (defined(_AIX))
#elif (defined(_AIX) || defined(__hpux))

/*
* Defines Big Endian on a whitelist of OSs that are known to be Big
Expand Down

0 comments on commit 855827c

Please sign in to comment.