This PR fixes missing types and endian defs in srutils/sha256 that prevent compilation on
Solaris derivatives.
Specifically, this fixes the following errors when compiling:
```
CC (gcc) [L libsrutils.so.1.0] sha256.o
In file included from sha256.c:37:0:
sha256.h:111:2: error: unknown type name 'u_int32_t'
sha256.h:112:2: error: unknown type name 'u_int64_t'
sha256.h:113:2: error: unknown type name 'u_int8_t'
sha256.h:116:2: error: unknown type name 'u_int64_t'
sha256.h:117:2: error: unknown type name 'u_int64_t'
sha256.h:118:2: error: unknown type name 'u_int8_t'
sha256.h:151:1: error: unknown type name 'u_int8_t'
sha256.h:152:19: error: unknown type name 'u_int8_t'
sha256.h:154:1: error: unknown type name 'u_int8_t'
sha256.h:157:1: error: unknown type name 'u_int8_t'
sha256.h:158:19: error: unknown type name 'u_int8_t'
sha256.h:160:1: error: unknown type name 'u_int8_t'
sha256.h:163:1: error: unknown type name 'u_int8_t'
sha256.h:164:19: error: unknown type name 'u_int8_t'
sha256.h:166:1: error: unknown type name 'u_int8_t'
sha256.c:89:2: error: #error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or
BIG_ENDIAN
sha256.c:114:1: error: unknown type name 'u_int8_t'
sha256.c:115:1: error: unknown type name 'u_int32_t'
sha256.c:116:1: error: unknown type name 'u_int64_t'
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/70
-- Commit Summary --
* fix compile errors in srutils/sha256 on SunOS (SmartOS)
-- File Changes --
M lib/srutils/sha256.c (6)
M lib/srutils/sha256.h (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/70.patch
https://github.com/kamailio/kamailio/pull/70.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/70