<p>This PR fixes missing types and endian defs in srutils/sha256 that prevent compilation on Solaris derivatives.</p>

<p>Specifically, this fixes the following errors when compiling:</p>

<pre><code>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'
</code></pre>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/70'>https://github.com/kamailio/kamailio/pull/70</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>fix compile errors in srutils/sha256 on SunOS (SmartOS)</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/70/files#diff-0">lib/srutils/sha256.c</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/70/files#diff-1">lib/srutils/sha256.h</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/70.patch'>https://github.com/kamailio/kamailio/pull/70.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/70.diff'>https://github.com/kamailio/kamailio/pull/70.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/70">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSaEbqRINqDjFiG_3b3bN81RhxfFks5no_cJgaJpZM4Dcg5U.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/70"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>