Richard W.M. Jones wrote: > This is another candidate for gnulib ... Yes, indeed. ... > +static inline uint16_t > +htons (x) > + uint16_t x; > +{ Using old-style function definitions like this is odd, but then I realized this was probably copied from glibc. Did you have to make any changes? ACK.