aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-11-17 21:17:23 +0100
committerGilles Chehade <gilles@poolp.org>2019-11-17 21:17:23 +0100
commit34671dfe3ffc22a20d0032ceea5f96bc979ad917 (patch)
treef6af0cf86d575f31b7fa2e23eeec2aedfc82db7f /openbsd-compat/openbsd-compat.h
parentmissing AM_CONDITIONAL (diff)
downloadOpenSMTPD-34671dfe3ffc22a20d0032ceea5f96bc979ad917.tar.xz
OpenSMTPD-34671dfe3ffc22a20d0032ceea5f96bc979ad917.zip
conditionally build progname
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index be9b90e1..b59ac6e8 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -308,6 +308,18 @@ struct timespec {
int nanosleep(const struct timespec *, struct timespec *);
#endif
+#ifdef NEED_SETEGID
+int setegid(uid_t);
+#endif
+
+#ifdef NEED_SETEUID
+int seteuid(uid_t);
+#endif
+
+#ifdef NEED_SETSID
+#define setsid() setpgrp(0, getpid())
+#endif
+
#ifdef NEED_SIGNAL
typedef void (*mysig_t)(int);
mysig_t mysignal(int sig, mysig_t act);
@@ -322,4 +334,10 @@ const char *strerror(int);
int usleep(unsigned int useconds);
#endif
+char *get_progname(char *);
+
+
+
+
+
#endif /* _OPENBSD_COMPAT_H */