summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2016-05-27 18:04:25 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2016-05-27 18:04:25 +0100
commitcfef0c6658be29967f883997ba7139ca3bdef2ba (patch)
treebe0b41d18c5a8c8ecd4a230b35b8b089e52f8d03 /compat.h
parent20d97eb849282ae2ca5ff543f6826d689a07199a (diff)
getprogname() and setproctitle() on Linux.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index e9d2f159..7f17e193 100644
--- a/compat.h
+++ b/compat.h
@@ -223,6 +223,16 @@ size_t strlcat(char *, const char *, size_t);
int daemon(int, int);
#endif
+#ifndef HAVE_GETPROGNAME
+/* getprogname.c */
+const char *getprogname(void);
+#endif
+
+#ifndef HAVE_SETPROCTITLE
+/* setproctitle.c */
+void setproctitle(const char *, ...);
+#endif
+
#ifndef HAVE_B64_NTOP
/* b64_ntop.c */
#undef b64_ntop /* for Cygwin */