From e6099b7d75be0268e3afbc02220dd1e320610c92 Mon Sep 17 00:00:00 2001 From: gearnode Date: Sat, 21 Nov 2020 22:12:44 +0100 Subject: add missing function prototypes --- openbsd-compat/err_h/err.h | 3 +++ openbsd-compat/openbsd-compat.h | 2 ++ 2 files changed, 5 insertions(+) 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 *); -- cgit v1.2.3-59-g8ed1b