mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-14 17:53:31 +00:00
common: Force 64 bit fileops at compile time
This commit is contained in:
parent
8a0620030c
commit
b2cef77ccf
@ -72,6 +72,8 @@ IF (WIN32 AND NOT CYGWIN)
|
|||||||
FILE(GLOB SRC_PLAT src/win32/*.c)
|
FILE(GLOB SRC_PLAT src/win32/*.c)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
|
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
|
||||||
|
|
||||||
# Compile and link libgit2
|
# Compile and link libgit2
|
||||||
ADD_LIBRARY(git2 ${SRC} ${SRC_PLAT} ${SRC_SHA1} ${SRC_ZLIB})
|
ADD_LIBRARY(git2 ${SRC} ${SRC_PLAT} ${SRC_SHA1} ${SRC_ZLIB})
|
||||||
TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT})
|
TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
#define INCLUDE_common_h__
|
#define INCLUDE_common_h__
|
||||||
|
|
||||||
#include "git2/common.h"
|
#include "git2/common.h"
|
||||||
|
|
||||||
/** Force 64 bit off_t size on POSIX. */
|
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
|
|
||||||
#include "git2/thread-utils.h"
|
#include "git2/thread-utils.h"
|
||||||
#include "cc-compat.h"
|
#include "cc-compat.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user