aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgearnode <bryan@frimin.fr>2020-11-21 22:12:44 +0100
committergearnode <bryan@frimin.fr>2020-11-21 22:12:44 +0100
commite6099b7d75be0268e3afbc02220dd1e320610c92 (patch)
tree927ac1fc977bc310a35b8309ba521515acb3f404
parentfix missing openssl rand include (diff)
downloadOpenSMTPD-e6099b7d75be0268e3afbc02220dd1e320610c92.tar.xz
OpenSMTPD-e6099b7d75be0268e3afbc02220dd1e320610c92.zip
add missing function prototypes
-rw-r--r--openbsd-compat/err_h/err.h3
-rw-r--r--openbsd-compat/openbsd-compat.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/openbsd-compat/err_h/err.h b/openbsd-compat/err_h/err.h
index a56b6188..92aa69f6 100644
--- a/openbsd-compat/err_h/err.h
+++ b/openbsd-compat/err_h/err.h
@@ -10,6 +10,9 @@ void err(int, const char *, ...);
__attribute__ ((noreturn))
void errx(int, const char *, ...);
+__attribute__ ((noreturn))
+void errc(int, int, const char *, ...);
+
void warn(const char *, ...);
void warnx(const char *, ...);
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 57748621..ec0ae516 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -334,6 +334,8 @@ const char *strerror(int);
int usleep(unsigned int useconds);
#endif
+int pipe2(int pipefd[2], int flags);
+
char *get_progname(char *);