diff options
author | triaxx <triaxx@pkgsrc.org> | 2018-12-31 11:25:08 +0000 |
---|---|---|
committer | triaxx <triaxx@pkgsrc.org> | 2018-12-31 11:25:08 +0000 |
commit | 212d899ca7fdd21e5e67ab9e30acd462754724b1 (patch) | |
tree | 139a3d0f05483cb310b784106a7777a49fbb950e /pkgtools | |
parent | cb57e897711f60e5e858c39d27e0dc5c93e66fbb (diff) | |
download | pkgsrc-212d899ca7fdd21e5e67ab9e30acd462754724b1.tar.gz |
libnbcompat: fix PR pkg/33037
Thanks Stuart and sorry for the long time.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/err.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat/err.h b/pkgtools/libnbcompat/files/nbcompat/err.h index eb7f0a06bf0..c31f5a47bb1 100644 --- a/pkgtools/libnbcompat/files/nbcompat/err.h +++ b/pkgtools/libnbcompat/files/nbcompat/err.h @@ -1,4 +1,4 @@ -/* $NetBSD: err.h,v 1.4 2004/08/23 03:32:13 jlam Exp $ */ +/* $NetBSD: err.h,v 1.5 2018/12/31 11:25:08 triaxx Exp $ */ /* * Copyright (c) 1989, 1993 @@ -40,9 +40,11 @@ #if HAVE_ERR_H # include <err.h> -#endif - -#if !HAVE_ERR +#else +# if !HAVE_SYS_CDEFS_H +# include <nbcompat/cdefs.h> +# endif +# include <stdarg.h> void err __P((int, const char *, ...)); void errx __P((int, const char *, ...)); void verr __P((int, const char *, va_list)); @@ -50,6 +52,10 @@ void verrx __P((int, const char *, va_list)); #endif #if !HAVE_WARN +# if !HAVE_SYS_CDEFS_H +# include <nbcompat/cdefs.h> +# endif +# include <stdarg.h> void warn __P((const char *, ...)); void warnx __P((const char *, ...)); void vwarn __P((const char *, va_list)); |