Skip to content

Commit 0efef36

Browse files
committed
move _FILE_OFFSET_BITS to libpsl
1 parent 91bf374 commit 0efef36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,6 @@ build_single_target() {
892892

893893
_CPPFLAGS_GLOBAL+=' -D_FORTIFY_SOURCE=3' # Requires mingw-w64 11.0.0
894894

895-
_CPPFLAGS_GLOBAL+=' -D_FILE_OFFSET_BITS=64'
896-
897895
elif [ "${_OS}" = 'mac' ]; then
898896
if [ "${_HOST}" != "${_OS}" ]; then
899897
_CMAKE_GLOBAL="-DCMAKE_SYSTEM_NAME=Darwin ${_CMAKE_GLOBAL}"

libpsl.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ _VER="$1"
2727
mkdir -p "${_BLDDIR}"
2828
(
2929
cd "${_BLDDIR}"
30+
CPPFLAGS=''
31+
[ "${_OS}" = 'win' ] && CPPFLAGS+=' -D_FILE_OFFSET_BITS=64' # for stat()
3032
# shellcheck disable=SC2046,SC2086
31-
${_CC_GLOBAL} ${_CFLAGS_GLOBAL} ${_CFLAGS_GLOBAL_RAW} ${_CPPFLAGS_GLOBAL} \
33+
${_CC_GLOBAL} ${_CFLAGS_GLOBAL} ${_CFLAGS_GLOBAL_RAW} ${_CPPFLAGS_GLOBAL} ${CPPFLAGS} \
3234
-DENABLE_BUILTIN -DPACKAGE_VERSION="\"${LIBPSL_VER_}\"" \
3335
-I. -I.. -I../include -c $(find ../src -name '*.c' | sort)
3436
# shellcheck disable=SC2046

0 commit comments

Comments
 (0)