summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason King <jason.king@joyent.com>2018-04-25 15:51:01 -0500
committerJason King <jason.king@joyent.com>2018-04-26 14:55:47 -0500
commitf2285ca5410456673906e9e258bf9e27974161de (patch)
tree69433baea3a90cdd45b0bd145e0ee2680c03899f
parenteee119ebc2fe042c8bf9adde74d41245472ce616 (diff)
downloadillumos-joyent-f2285ca5410456673906e9e258bf9e27974161de.tar.gz
OS-6909 mandoc(1) should be large file aware
Reviewed by: Dan McDonald <danmcd@joyent.com> Approved by: John Levon <john.levon@joyent.com>
-rw-r--r--usr/src/cmd/mandoc/Makefile.common3
-rw-r--r--usr/src/tools/mandoc/Makefile3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/cmd/mandoc/Makefile.common b/usr/src/cmd/mandoc/Makefile.common
index ac5b6fe2ac..e47ef79569 100644
--- a/usr/src/cmd/mandoc/Makefile.common
+++ b/usr/src/cmd/mandoc/Makefile.common
@@ -12,6 +12,7 @@
#
# Copyright 2014 Garrett D'Amore <garrett@damore.org>
# Copyright 2017 Nexenta Systems, Inc.
+# Copyright 2018, Joyent, Inc.
#
PROG= mandoc
@@ -78,6 +79,6 @@ OBJS += compat_ohash.o
CFLAGS += $(CC_VERBOSE)
CSTD = $(CSTD_GNU99)
-CPPFLAGS += -DOSNAME="\"illumos\""
+CPPFLAGS += -DOSNAME="\"illumos\"" -D_FILE_OFFSET_BITS=64
LDLIBS += -lz
diff --git a/usr/src/tools/mandoc/Makefile b/usr/src/tools/mandoc/Makefile
index e6b9571841..e3b1b39422 100644
--- a/usr/src/tools/mandoc/Makefile
+++ b/usr/src/tools/mandoc/Makefile
@@ -11,7 +11,7 @@
#
# Copyright 2017 Nexenta Systems, Inc.
-# Copyright 2017 Joyent, Inc.
+# Copyright 2018 Joyent, Inc.
#
CMDDIR= $(SRC)/cmd/mandoc
@@ -21,6 +21,7 @@ include $(SRC)/tools/Makefile.tools
include $(CMDDIR)/Makefile.common
CPPFLAGS += -_gcc=-nostdinc -I/usr/include -I$(NATIVE_ADJUNCT)/include
+CPPFLAGS += -D_FILE_OFFSET_BITS=64
LDFLAGS += -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib
OBJS += fts.o \
reallocarray.o \