Skip to content

Commit

Permalink
fix: add config.h in platform.h
Browse files Browse the repository at this point in the history
to build htonll and ntohll correctly.
  • Loading branch information
upa committed Mar 30, 2024
1 parent 07a6cbf commit 262a715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#ifndef _PLATFORM_H_
#define _PLATFORM_H_

#include <config.h>

#include <pthread.h>
#include <semaphore.h>
#include <stdint.h>
Expand All @@ -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)
Expand Down

0 comments on commit 262a715

Please sign in to comment.