diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-11-17 21:17:23 +0100 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2019-11-17 21:17:23 +0100 |
commit | 34671dfe3ffc22a20d0032ceea5f96bc979ad917 (patch) | |
tree | f6af0cf86d575f31b7fa2e23eeec2aedfc82db7f /openbsd-compat/openbsd-compat.h | |
parent | missing AM_CONDITIONAL (diff) | |
download | OpenSMTPD-34671dfe3ffc22a20d0032ceea5f96bc979ad917.tar.xz OpenSMTPD-34671dfe3ffc22a20d0032ceea5f96bc979ad917.zip |
conditionally build progname
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 18 |
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 */ |