mirror of
https://github.com/libAthena/athena.git
synced 2025-07-19 19:46:10 +00:00
FreeBSD Fixes
This commit is contained in:
parent
574038a826
commit
0762a3bdcc
@ -34,7 +34,12 @@ set(CLANG_INCLUDE_DIR ${LLVM_LIBRARY_DIRS}/clang/${LLVM_VERSION_STRING}/include
|
|||||||
CACHE PATH "Clang include dir" FORCE)
|
CACHE PATH "Clang include dir" FORCE)
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
list(APPEND PLAT_LIBS z pthread curses dl)
|
list(APPEND PLAT_LIBS z pthread curses)
|
||||||
|
if (APPLE)
|
||||||
|
list(APPEND PLAT_LIBS dl)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
list(APPEND PLAT_LIBS dl)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Offer the user the choice of overriding the installation directories
|
# Offer the user the choice of overriding the installation directories
|
||||||
|
@ -47,6 +47,11 @@ typedef struct stat stat64_t;
|
|||||||
#define stat64 stat
|
#define stat64 stat
|
||||||
#elif _WIN32
|
#elif _WIN32
|
||||||
typedef struct _stat64 stat64_t;
|
typedef struct _stat64 stat64_t;
|
||||||
|
#elif __FreeBSD__
|
||||||
|
typedef struct stat stat64_t;
|
||||||
|
#define stat64 stat
|
||||||
|
#define fseeko64 fseeko
|
||||||
|
#define ftello64 ftello
|
||||||
#else
|
#else
|
||||||
typedef struct stat64 stat64_t;
|
typedef struct stat64 stat64_t;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user