diff --git a/external/bsd/am-utils/dist/include/am_defs.h b/external/bsd/am-utils/dist/include/am_defs.h index 98b081c7e529..c3e9b2acac8b 100644 --- a/external/bsd/am-utils/dist/include/am_defs.h +++ b/external/bsd/am-utils/dist/include/am_defs.h @@ -1,4 +1,4 @@ -/* $NetBSD: am_defs.h,v 1.2 2009/10/28 13:08:45 christos Exp $ */ +/* $NetBSD: am_defs.h,v 1.3 2009/10/28 15:00:26 christos Exp $ */ /* * Copyright (c) 1997-2009 Erez Zadok @@ -321,17 +321,6 @@ typedef bool_t (*xdrproc_t) __P ((XDR *, __ptr_t, ...)); # include #endif /* HAVE_MNTENT_H */ -/* - * Actions to take if exists. - */ -#ifdef HAVE_SYS_ERRNO_H -# ifdef __NetBSD__ -# include -# else -# include -extern int errno; -# endif -#endif /* HAVE_SYS_ERRNO_H */ /* * Actions to take if exists. @@ -937,6 +926,14 @@ struct sockaddr_dl; */ #ifdef HAVE_ERRNO_H # include +#else +/* + * Actions to take if exists. + */ +# ifdef HAVE_SYS_ERRNO_H +# include +extern int errno; +# endif /* HAVE_SYS_ERRNO_H */ #endif /* HAVE_ERRNO_H */ /*