diff --git a/CMakeLists.txt b/CMakeLists.txt index b006ed34ea..dc28fd5476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,7 @@ set(CMAKE_SHARED_MODULE_PREFIX "") set(CMAKE_POSITION_INDEPENDENT_CODE ON) include(GNUInstallDirs) add_compile_definitions(_GNU_SOURCE) +add_definitions(-D_FILE_OFFSET_BITS=64) function(makemacros) set(prefix ${CMAKE_INSTALL_PREFIX}) diff --git a/rpm.pc.in b/rpm.pc.in index 46d42e7a3d..791303e173 100644 --- a/rpm.pc.in +++ b/rpm.pc.in @@ -11,6 +11,6 @@ URL: @CMAKE_PROJECT_HOMEPAGE_URL@ Requires: popt Requires.private: @ZSTD_REQUIRES@ # Conflicts: -Cflags: -I${includedir} +Cflags: -I${includedir} -D_FILE_OFFSET_BITS=64 Libs: -L${libdir} -lrpm -lrpmio Libs.private: -lpopt -lrt -lpthread @WITH_LZMA_LIB@ @WITH_BZ2_LIB@ @WITH_ZLIB_LIB@ @LUA_LIBS@