Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sup/source provide unconst for the havenots



details:   https://anonhg.NetBSD.org/src/rev/95550fd8b449
branches:  trunk
changeset: 763300:95550fd8b449
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 16 20:15:59 2011 +0000

description:
provide unconst for the havenots

diffstat:

 usr.sbin/sup/source/libc.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 967ef55a4fd0 -r 95550fd8b449 usr.sbin/sup/source/libc.h
--- a/usr.sbin/sup/source/libc.h        Wed Mar 16 15:14:08 2011 +0000
+++ b/usr.sbin/sup/source/libc.h        Wed Mar 16 20:15:59 2011 +0000
@@ -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_ */



Home | Main Index | Thread Index | Old Index