summaryrefslogtreecommitdiffstats
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
commita8ce1f9346beb8f6af8a2704f58ad1be8a491a40 (patch)
tree1176af75445468319b8f0983434244892aba9031 /Makefile
parentbdcb15a7e65b5df030d7dac778cb68ac4e3277e6 (diff)
downloadmandoc-a8ce1f9346beb8f6af8a2704f58ad1be8a491a40.tar.gz
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--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c9bd1f92..0687a13f 100644
--- a/Makefile
+++ b/Makefile
@@ -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 \