loongarch64: add new syscall numbers
[musl.git] / src / network / ntohl.c
blobd6fce4590d43a3ee868d7cd807c89c0b6599ee3e
1 #include <netinet/in.h>
2 #include <byteswap.h>
4 uint32_t ntohl(uint32_t n)
6 union { int i; char c; } u = { 1 };
7 return u.c ? bswap_32(n) : n;