blob: 24f2e2a5ffa309e318dfa19a0d723a223c2f8183 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <netinet/in.h>
#include <byteswap.h>
uint32_t htonl(uint32_t n)
{
union { int i; char c; } u = { 1 };
return u.c ? bswap_32(n) : n;
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
|