title: What should I #include to use 'htonl'?
body: <p>I want to use the <code>htonl</code> function in my ruby c extension, but don't want to use any of the other internet stuff that comes with it. What would be the most minimalistic file to <code>#include</code> that is still portable? Looking through the header files on my computer, I can see that either <code>machine/endian.h</code> or <code>sys/_endian.h</code> would let me use them, although I am not sure if that is a good idea.</p>