aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-11-06 16:30:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-11-06 16:30:33 +0000
commit3fffa6c6072826f70aebe72863968bffb9d714cc (patch)
tree3baa7131a7aebf9cc11c25b444093e25a01efbcc /Makefile
parent3e3c69e597d7b127284c4d3fc3acbffb42f51999 (diff)
downloadmandoc-3fffa6c6072826f70aebe72863968bffb9d714cc.tar.gz
mandoc-3fffa6c6072826f70aebe72863968bffb9d714cc.tar.zst
mandoc-3fffa6c6072826f70aebe72863968bffb9d714cc.zip
Use getprogname(3) rather than __progname.
Suggested by Joerg@ Sonnenberger (NetBSD). Last year, deraadt@ confirmed on tech@ that this "has the potential to be more portable", and micro-optimizing for speed is not relevant here. Also gets rid of one global variable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec9eec60..cb2a2095 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.472 2015/11/05 17:47:51 schwarze Exp $
+# $Id: Makefile,v 1.473 2015/11/06 16:30:33 schwarze Exp $
#
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
# Copyright (c) 2011, 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -52,6 +52,7 @@ SRCS = att.c \
compat_isblank.c \
compat_mkdtemp.c \
compat_ohash.c \
+ compat_progname.c \
compat_reallocarray.c \
compat_sqlite3_errstr.c \
compat_strcasestr.c \
@@ -211,6 +212,7 @@ COMPAT_OBJS = compat_err.o \
compat_isblank.o \
compat_mkdtemp.o \
compat_ohash.o \
+ compat_progname.o \
compat_reallocarray.o \
compat_sqlite3_errstr.o \
compat_strcasestr.o \