Permalink
Browse files

common: Force 64 bit fileops at compile time

  • Loading branch information...
1 parent 8a06200 commit b2cef77ccf52b1fb55f8e1ca98ada48bbfe90b92 @vmg vmg committed Jun 30, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −0 CMakeLists.txt
  2. +0 −4 src/common.h
View
2 CMakeLists.txt
@@ -72,6 +72,8 @@ IF (WIN32 AND NOT CYGWIN)
FILE(GLOB SRC_PLAT src/win32/*.c)
ENDIF ()
+ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
+
# Compile and link libgit2
ADD_LIBRARY(git2 ${SRC} ${SRC_PLAT} ${SRC_SHA1} ${SRC_ZLIB})
TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT})
View
4 src/common.h
@@ -2,10 +2,6 @@
#define INCLUDE_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 "cc-compat.h"

0 comments on commit b2cef77

Please sign in to comment.