summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/glob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/glob.h b/misc/glob.h
index c0c7b302b..a52d1096c 100644
--- a/misc/glob.h
+++ b/misc/glob.h
@@ -46,7 +46,7 @@ extern "C" {
#endif /* C++ or ANSI C. */
/* We need `size_t' for the following definitions. */
-#ifndef __size_t
+#if !defined(__size_t) && !defined(_BSD_SIZE_T_DEFINED_)
# if defined __GNUC__ && __GNUC__ >= 2
typedef __SIZE_TYPE__ __size_t;
# ifdef _XOPEN_SOURCE