Module Name: src
Committed By: christos
Date: Wed Mar 16 20:16:00 UTC 2011
Modified Files:
src/usr.sbin/sup/source: libc.h
Log Message:
provide unconst for the havenots
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/sup/source/libc.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sup/source/libc.h
diff -u src/usr.sbin/sup/source/libc.h:1.8 src/usr.sbin/sup/source/libc.h:1.9
--- src/usr.sbin/sup/source/libc.h:1.8 Thu Jan 15 10:58:42 2009
+++ src/usr.sbin/sup/source/libc.h Wed Mar 16 16:15:59 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: libc.h,v 1.8 2009/01/15 15:58:42 christos Exp $ */
+/* $NetBSD: libc.h,v 1.9 2011/03/16 20:15:59 christos Exp $ */
/*
* Copyright (c) 1991 Carnegie Mellon University
@@ -152,4 +152,8 @@
#if defined(c_plusplus)
typedef int (*PFI2)(...);
#endif /* c_plusplus */
+
+#ifndef __UNCONST
+#define __UNCONST(a) (void *)(intptr_t)(a)
+#endif
#endif /* not _LIBC_H_ */