Make ptrdiff_t available in the kernel.

This commit is contained in:
matt 2013-12-12 17:53:03 +00:00
parent 23185d9d77
commit a9c8f9282e
2 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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