summaryrefslogtreecommitdiffstats
path: root/sys/sys/stddef.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2011-05-05 02:35:25 +0000
committerobrien <obrien@FreeBSD.org>2011-05-05 02:35:25 +0000
commit08574c897607ed8057b827c88ce9432cf159a067 (patch)
tree36c162f078cfad63e6edd6500e10d3029f67c993 /sys/sys/stddef.h
parent11dd08fd538e3b72326c44b44ddd991eafb03d31 (diff)
downloadFreeBSD-src-08574c897607ed8057b827c88ce9432cf159a067.zip
FreeBSD-src-08574c897607ed8057b827c88ce9432cf159a067.tar.gz
Guard ptrdiff_t.
Diffstat (limited to 'sys/sys/stddef.h')
-rw-r--r--sys/sys/stddef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/stddef.h b/sys/sys/stddef.h
index 8e7f206..1581744 100644
--- a/sys/sys/stddef.h
+++ b/sys/sys/stddef.h
@@ -33,7 +33,10 @@
#include <sys/_null.h>
#include <machine/_types.h>
+#ifndef _PTRDIFF_T_DECLARED
typedef __ptrdiff_t ptrdiff_t;
+#define _PTRDIFF_T_DECLARED
+#endif
#define offsetof(type, field) __offsetof(type, field)
OpenPOWER on IntegriCloud