Provide a definition for __UNCONST since there's no guarentee our sys/cdefs.h

gets pulled in
This commit is contained in:
jmc 2004-12-11 09:34:08 +00:00
parent 70f18ae0f6
commit 427a8339c4

View File

@ -1,4 +1,4 @@
/* $NetBSD: compat_defs.h,v 1.44 2004/11/28 06:57:14 jmc Exp $ */
/* $NetBSD: compat_defs.h,v 1.45 2004/12/11 09:34:08 jmc Exp $ */
#ifndef __NETBSD_COMPAT_DEFS_H__
#define __NETBSD_COMPAT_DEFS_H__
@ -66,6 +66,12 @@
#error _NETBSD_SOURCE is *not* to be defined.
#endif
/* Need this since we can't depend on NetBSD's version to be around */
#ifdef __UNCONST
#undef __UNCONST
#endif
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
/* We don't include <pwd.h> here, so that "compat_pwd.h" works. */
struct passwd;