Skip to content

Commit 855827c

Browse files
michael-ocr-marcstevens
authored andcommitted
Detect endianess on HP-UX
HP-UX is not properly detected and classified as little endian. Add test macro for HP-UX to make it big endian.
1 parent 1603399 commit 855827c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sha1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
#define SHA1DC_BIGENDIAN
9494

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

9898
/*
9999
* Defines Big Endian on a whitelist of OSs that are known to be Big

0 commit comments

Comments
 (0)