Browse Source

[build] -D_DEFAULT_SOURCE consistency in builds

(previously defined in src/CMakeLists.txt)
master
Glenn Strauss 2 months ago
parent
commit
1bb0cbc798
  1. 1
      SConstruct
  2. 2
      configure.ac
  3. 1
      src/meson.build

1
SConstruct

@ -297,6 +297,7 @@ env.Append(CPPFLAGS = [
'-D_FILE_OFFSET_BITS=64',
'-D_LARGEFILE_SOURCE',
'-D_LARGE_FILES',
'-D_DEFAULT_SOURCE',
'-D_GNU_SOURCE',
])

2
configure.ac

@ -1535,7 +1535,7 @@ AC_ARG_ENABLE([lfs],
)
AC_MSG_RESULT([$ENABLE_LFS])
if test "$ENABLE_LFS" = yes; then
CPPFLAGS="${CPPFLAGS} -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
CPPFLAGS="${CPPFLAGS} -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_DEFAULT_SOURCE"
AC_SYS_LARGEFILE
fi

1
src/meson.build

@ -13,6 +13,7 @@ defs = [
'-D_FILE_OFFSET_BITS=64',
'-D_LARGEFILE_SOURCE',
'-D_LARGE_FILES',
'-D_DEFAULT_SOURCE',
'-D_GNU_SOURCE',
]

Loading…
Cancel
Save