diff --git a/include/stddef.h b/include/stddef.h index e7635ad14a66..5d4cabcbbbd2 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -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 #include +#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 --git a/sys/sys/types.h b/sys/sys/types.h index 37e680fdeea0..681f43937c51 100644 --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -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