mirror of
https://github.com/intel/linux-sgx
synced 2026-06-08 14:49:32 +00:00
0f61c27a40
Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
9 lines
146 B
C
9 lines
146 B
C
#include <netinet/in.h>
|
|
#include <byteswap.h>
|
|
|
|
uint16_t htons(uint16_t n)
|
|
{
|
|
union { int i; char c; } u = { 1 };
|
|
return u.c ? bswap_16(n) : n;
|
|
}
|