mirror of
https://github.com/upa/mscp.git
synced 2026-02-13 00:24:42 +08:00
fix: add config.h in platform.h
to build htonll and ntohll correctly.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user