diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-06 16:30:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-06 16:30:33 +0000 |
commit | a8ce1f9346beb8f6af8a2704f58ad1be8a491a40 (patch) | |
tree | 1176af75445468319b8f0983434244892aba9031 /Makefile | |
parent | bdcb15a7e65b5df030d7dac778cb68ac4e3277e6 (diff) | |
download | mandoc-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-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 \ |