From cfe4993602a94663492263098394c6562bb6b350 Mon Sep 17 00:00:00 2001 From: Simon Sobisch Date: Mon, 25 Aug 2025 16:31:29 +0200 Subject: [PATCH] only define htonl where missing * glibc has that as a define * muslc and others have that as a function * Android API level 20 misses it --- src/test/privileged_net_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/privileged_net_ioctl.c b/src/test/privileged_net_ioctl.c index 793ef263ae5..28544623ad5 100644 --- a/src/test/privileged_net_ioctl.c +++ b/src/test/privileged_net_ioctl.c @@ -25,7 +25,7 @@ void buf_put_attr(char** cur_buf_pos, uint16_t opt, void* data, size_t size) { *cur_buf_pos += RTA_ALIGN(size) - size; } -#ifndef htonl +#ifdef __ANDROID__ #define htonl(x) __bswap_32(x) #endif