summaryrefslogtreecommitdiff
path: root/src/platform.h
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2024-03-30 14:37:43 +0900
committerRyo Nakamura <upa@haeena.net>2024-03-30 14:37:43 +0900
commit262a715e5eccbdade519bd7203848ca9f35d35af (patch)
tree9baf0e1bd35a9a3bf01d26b0a8dc4fc71c474cf4 /src/platform.h
parent07a6cbf039049d3be04c329ce6adad6d2b42744e (diff)
fix: add config.h in platform.h
to build htonll and ntohll correctly.
Diffstat (limited to 'src/platform.h')
-rw-r--r--src/platform.h4
1 files changed, 3 insertions, 1 deletions
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 <config.h>
+
#include <pthread.h>
#include <semaphore.h>
#include <stdint.h>
@@ -25,7 +27,7 @@ int sem_release(sem_t *sem);
#include <arpa/inet.h> /* 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)