Module Name: src
Committed By: matt
Date: Thu Dec 12 17:53:03 UTC 2013
Modified Files:
src/include: stddef.h
src/sys/sys: types.h
Log Message:
Make ptrdiff_t available in the kernel.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/include/stddef.h
cvs rdiff -u -r1.90 -r1.91 src/sys/sys/types.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/stddef.h
diff -u src/include/stddef.h:1.16 src/include/stddef.h:1.17
--- src/include/stddef.h:1.16 Sun Nov 15 22:21:03 2009
+++ src/include/stddef.h Thu Dec 12 17:53:03 2013
@@ -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;
Index: src/sys/sys/types.h
diff -u src/sys/sys/types.h:1.90 src/sys/sys/types.h:1.91
--- src/sys/sys/types.h:1.90 Sat Feb 2 14:00:37 2013
+++ src/sys/sys/types.h Thu Dec 12 17:53:03 2013
@@ -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 @@ typedef _BSD_CLOCK_T_ clock_t;
#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