mirror of
https://github.com/upa/mscp.git
synced 2026-02-24 17:04:43 +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_
|
#ifndef _PLATFORM_H_
|
||||||
#define _PLATFORM_H_
|
#define _PLATFORM_H_
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <stdint.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 */
|
#include <arpa/inet.h> /* Apple has htonll and ntohll in arpa/inet.h */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* copied from libssh: libssh/include/libssh/priv.h*/
|
/* copied from libssh: libssh/include/libssh/priv.h */
|
||||||
#ifndef HAVE_HTONLL
|
#ifndef HAVE_HTONLL
|
||||||
#ifdef WORDS_BIGENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
#define htonll(x) (x)
|
#define htonll(x) (x)
|
||||||
|
|||||||
Reference in New Issue
Block a user