blob: cb2e8d762f4b38afb300a1857e962c128ee4b96f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ad,v 1.4 2003/02/21 12:40:55 grant Exp $
--- glob/glob.h.orig Sat Jan 22 16:43:03 2000
+++ glob/glob.h
@@ -47,6 +47,9 @@ extern "C" {
/* We need `size_t' for the following definitions. */
#ifndef __size_t
+#if defined __FreeBSD__
+#define __size_t size_t
+#else
# if defined __GNUC__ && __GNUC__ >= 2
typedef __SIZE_TYPE__ __size_t;
# else
@@ -59,6 +62,7 @@ typedef __SIZE_TYPE__ __size_t;
*/
#if !(defined __DECC && defined __SIZE_T)
typedef unsigned long int __size_t;
+#endif
#endif
# endif
#else
|