From 262a715e5eccbdade519bd7203848ca9f35d35af Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 30 Mar 2024 14:37:43 +0900 Subject: fix: add config.h in platform.h to build htonll and ntohll correctly. --- src/platform.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/platform.h') diff --git a/src/platform.h b/src/platform.h index 9426951..b0463eb 100644 --- a/src/platform.h +++ b/src/platform.h @@ -2,6 +2,8 @@ #ifndef _PLATFORM_H_ #define _PLATFORM_H_ +#include + #include #include #include @@ -25,7 +27,7 @@ int sem_release(sem_t *sem); #include /* Apple has htonll and ntohll in arpa/inet.h */ #endif -/* copied from libssh: libssh/include/libssh/priv.h*/ +/* copied from libssh: libssh/include/libssh/priv.h */ #ifndef HAVE_HTONLL #ifdef WORDS_BIGENDIAN #define htonll(x) (x) -- cgit v1.2.3