mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 23:56:01 +00:00
try to support solaris
This commit is contained in:
@@ -56,6 +56,10 @@
|
||||
/* Do some mingw32 autodetection. */
|
||||
#include <libcork/config/mingw32.h>
|
||||
|
||||
#elif defined(__sun)
|
||||
/* Do some Solaris autodetection. */
|
||||
#include <libcork/config/solaris.h>
|
||||
|
||||
#endif /* platforms */
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* -*- coding: utf-8 -*-
|
||||
* ----------------------------------------------------------------------
|
||||
* Copyright © 2013, RedJack, LLC.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Please see the COPYING file in this distribution for license
|
||||
* details.
|
||||
* ----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef LIBCORK_CONFIG_SOLARIS_H
|
||||
#define LIBCORK_CONFIG_SOLARIS_H
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Endianness
|
||||
*/
|
||||
|
||||
#include <sys/endian.h>
|
||||
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
#define CORK_CONFIG_IS_BIG_ENDIAN 1
|
||||
#define CORK_CONFIG_IS_LITTLE_ENDIAN 0
|
||||
#elif BYTE_ORDER == LITTLE_ENDIAN
|
||||
#define CORK_CONFIG_IS_BIG_ENDIAN 0
|
||||
#define CORK_CONFIG_IS_LITTLE_ENDIAN 1
|
||||
#else
|
||||
#error "Cannot determine system endianness"
|
||||
#endif
|
||||
|
||||
#define CORK_HAVE_REALLOCF 1
|
||||
#define CORK_HAVE_PTHREADS 1
|
||||
|
||||
|
||||
#endif /* LIBCORK_CONFIG_SOLARIS_H */
|
||||
Reference in New Issue
Block a user