Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/am-utils/dist/include Deal with errno correctly...
details: https://anonhg.NetBSD.org/src/rev/9eb3bba06512
branches: trunk
changeset: 748588:9eb3bba06512
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 28 13:08:45 2009 +0000
description:
Deal with errno correctly. Fixed better upstream.
diffstat:
external/bsd/am-utils/dist/include/am_defs.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r c454649dd093 -r 9eb3bba06512 external/bsd/am-utils/dist/include/am_defs.h
--- a/external/bsd/am-utils/dist/include/am_defs.h Wed Oct 28 12:59:24 2009 +0000
+++ b/external/bsd/am-utils/dist/include/am_defs.h Wed Oct 28 13:08:45 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: am_defs.h,v 1.1.1.2 2009/03/20 20:26:55 christos Exp $ */
+/* $NetBSD: am_defs.h,v 1.2 2009/10/28 13:08:45 christos Exp $ */
/*
* Copyright (c) 1997-2009 Erez Zadok
@@ -325,8 +325,12 @@
* Actions to take if <sys/errno.h> exists.
*/
#ifdef HAVE_SYS_ERRNO_H
-# include <sys/errno.h>
+# ifdef __NetBSD__
+# include <errno.h>
+# else
+# include <sys/errno.h>
extern int errno;
+# endif
#endif /* HAVE_SYS_ERRNO_H */
/*
Home |
Main Index |
Thread Index |
Old Index