Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Expose 64 bit fileystems API's on Linux and make th...



details:   https://anonhg.NetBSD.org/src/rev/0ca4b866fc46
branches:  trunk
changeset: 937149:0ca4b866fc46
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 09 21:13:38 2020 +0000

description:
Expose 64 bit fileystems API's on Linux and make the default FS API 64 bits
Should unbreak newfs's of fs's, using the tool version of newfs.

diffstat:

 share/mk/bsd.host.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 66d8e51a1a3f -r 0ca4b866fc46 share/mk/bsd.host.mk
--- a/share/mk/bsd.host.mk      Sun Aug 09 20:49:15 2020 +0000
+++ b/share/mk/bsd.host.mk      Sun Aug 09 21:13:38 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.host.mk,v 1.4 2018/02/25 18:53:23 chs Exp $
+#      $NetBSD: bsd.host.mk,v 1.5 2020/08/09 21:13:38 christos Exp $
 
 .if !defined(_BSD_HOST_MK_)
 _BSD_HOST_MK_=1
@@ -65,6 +65,10 @@
 HOST_MKDEPCXX?=        CC=${HOST_CXX:Q} mkdep
 .endif
 
+.if ${HOST_OSTYPE:MLinux*}
+HOST_CPPFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+.endif
+
 .if ${NEED_OWN_INSTALL_TARGET} != "no"
 HOST_INSTALL_FILE?=    ${INSTALL} ${COPY} ${PRESERVE} ${RENAME}
 HOST_INSTALL_DIR?=     ${INSTALL} -d



Home | Main Index | Thread Index | Old Index