summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-07-13 14:42:35 +1000
committerDarren Tucker <dtucker@zip.com.au>2016-07-13 14:42:35 +1000
commit6310ef27a2567cda66d6cf0c1ad290ee1167f243 (patch)
treea84f11401272e0eb9717008e6d2d69c426e72aea /openbsd-compat/bsd-misc.h
parentf3f2cc8386868f51440c45210098f65f9787449a (diff)
downloadopenssh-git-6310ef27a2567cda66d6cf0c1ad290ee1167f243.tar.gz
Move err.h replacements into compat lib.
Move implementations of err.h replacement functions into their own file in the libopenbsd-compat so we can use them in kexfuzz.c too. ok djm@
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r--openbsd-compat/bsd-misc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 0d81d173..27abb2e9 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -126,4 +126,15 @@ pid_t getpgid(pid_t);
int pledge(const char *promises, const char *paths[]);
#endif
+/* bsd-err.h */
+#ifndef HAVE_ERR
+void err(int, const char *, ...) __attribute__((format(printf, 2, 3)));
+#endif
+#ifndef HAVE_ERRX
+void errx(int, const char *, ...) __attribute__((format(printf, 2, 3)));
+#endif
+#ifndef HAVE_WARN
+void warn(const char *, ...) __attribute__((format(printf, 1, 2)));
+#endif
+
#endif /* _BSD_MISC_H */