pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files/nbcompat libnbcompat: fix P...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d32b5ad9a857
branches:  trunk
changeset: 389377:d32b5ad9a857
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Mon Dec 31 11:25:08 2018 +0000

description:
libnbcompat: fix PR pkg/33037

Thanks Stuart and sorry for the long time.

diffstat:

 pkgtools/libnbcompat/files/nbcompat/err.h |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r a1693fe573bc -r d32b5ad9a857 pkgtools/libnbcompat/files/nbcompat/err.h
--- a/pkgtools/libnbcompat/files/nbcompat/err.h Mon Dec 31 11:24:24 2018 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat/err.h Mon Dec 31 11:25:08 2018 +0000
@@ -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 @@
 #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));



Home | Main Index | Thread Index | Old Index