Browse Source

include pthreads if appropriate ala glibc

Mike Frysinger 18 years ago
parent
commit
1e80791974
1 changed files with 9 additions and 1 deletions
  1. 9 1
      include/sys/types.h

+ 9 - 1
include/sys/types.h

@@ -1,4 +1,5 @@
-/* Copyright (C) 1991,92,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1994,1995,1996,1997,1998,1999,2000,2001,2002
+   	Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -259,6 +260,13 @@ typedef __fsblkcnt64_t fsblkcnt64_t; /* Type to count file system blocks.  */
 typedef __fsfilcnt64_t fsfilcnt64_t; /* Type to count file system inodes.  */
 #endif
 
+
+/* Now add the thread types.  */
+#include <features.h>
+#if (defined __USE_POSIX199506 || defined __USE_UNIX98) && defined UCLIBC_HAS_THREADS
+# include <bits/pthreadtypes.h>
+#endif
+
 __END_DECLS
 
 #endif /* sys/types.h */