<p>Hi Daniel,<br>
I guess we can be 100% sure of ALL platforms but it is a macro on all the ones I tested:</p>
<p>SmartOS and Solaris 11:</p>
<pre><code>#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
#define ntohll(x) (x)
#define htonll(x) (x)
#endif /* !_XPG4_2 || __EXTENSIONS__ */
</code></pre>
<p>OSX:</p>
<pre><code>#if defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
#define ntohll(x) ((__uint64_t)(x))
#define htonll(x) ((__uint64_t)(x))
#define NTOHL(x) (x)
#define NTOHS(x) (x)
#define NTOHLL(x) (x)
#define HTONL(x) (x)
#define HTONS(x) (x)
#define HTONLL(x) (x)
#endif /* defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) */
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/665#issuecomment-225932711">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZcDckfTN5Kn13zF4DSHxxs6XEKcjks5qLtK6gaJpZM4IyLDj">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSBXMko1e_5h74yLzg42r0hvewyiks5qLtK6gaJpZM4IyLDj.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/issues/665#issuecomment-225932711"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>