Skip to content

Commit 5cbdfed

Browse files
GitMenschrocallahan
authored andcommitted
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
1 parent 12a2eb8 commit 5cbdfed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/privileged_net_ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void buf_put_attr(char** cur_buf_pos, uint16_t opt, void* data, size_t size) {
2525
*cur_buf_pos += RTA_ALIGN(size) - size;
2626
}
2727

28-
#ifndef htonl
28+
#ifdef __ANDROID__
2929
#define htonl(x) __bswap_32(x)
3030
#endif
3131

0 commit comments

Comments
 (0)