Module Name: src
Committed By: christos
Date: Sun Aug 9 21:13:38 UTC 2020
Modified Files:
src/share/mk: bsd.host.mk
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/mk/bsd.host.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.host.mk
diff -u src/share/mk/bsd.host.mk:1.4 src/share/mk/bsd.host.mk:1.5
--- src/share/mk/bsd.host.mk:1.4 Sun Feb 25 13:53:23 2018
+++ src/share/mk/bsd.host.mk Sun Aug 9 17:13:38 2020
@@ -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_MKDEP?= CC=${HOST_CC:Q} mkdep
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