Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Make ptrdiff_t available in the kernel.
details: https://anonhg.NetBSD.org/src/rev/ef9fe4a3f0cf
branches: trunk
changeset: 791951:ef9fe4a3f0cf
user: matt <matt%NetBSD.org@localhost>
date: Thu Dec 12 17:53:03 2013 +0000
description:
Make ptrdiff_t available in the kernel.
diffstat:
include/stddef.h | 5 ++++-
sys/sys/types.h | 7 ++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r e884f205e0e9 -r ef9fe4a3f0cf include/stddef.h
--- a/include/stddef.h Thu Dec 12 15:08:16 2013 +0000
+++ b/include/stddef.h Thu Dec 12 17:53:03 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stddef.h,v 1.16 2009/11/15 22:21:03 christos Exp $ */
+/* $NetBSD: stddef.h,v 1.17 2013/12/12 17:53:03 matt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,10 @@
#include <sys/featuretest.h>
#include <machine/ansi.h>
+#ifdef _BSD_PTRDIFF_T_
typedef _BSD_PTRDIFF_T_ ptrdiff_t;
+#undef _BSD_PTRDIFF_T_
+#endif
#ifdef _BSD_SIZE_T_
typedef _BSD_SIZE_T_ size_t;
diff -r e884f205e0e9 -r ef9fe4a3f0cf sys/sys/types.h
--- a/sys/sys/types.h Thu Dec 12 15:08:16 2013 +0000
+++ b/sys/sys/types.h Thu Dec 12 17:53:03 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.90 2013/02/02 14:00:37 matt Exp $ */
+/* $NetBSD: types.h,v 1.91 2013/12/12 17:53:03 matt Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -275,6 +275,11 @@
#undef _BSD_CLOCK_T_
#endif
+#ifdef _BSD_PTRDIFF_T_
+typedef _BSD_PTRDIFF_T_ ptrdiff_t;
+#undef _BSD_PTRDIFF_T_
+#endif
+
#ifdef _BSD_SIZE_T_
typedef _BSD_SIZE_T_ size_t;
#define _SIZE_T
Home |
Main Index |
Thread Index |
Old Index