This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: c/3297: fixincludes (?) removes pthread types from types.h
- To: Grant Gould <ggould at intouchsys dot com>, gcc-bugs at gcc dot gnu dot org
- Subject: RE: c/3297: fixincludes (?) removes pthread types from types.h
- From: Bruce Korb <bkorb at veritas dot com>
- Date: Wed, 20 Jun 2001 13:54:17 -0700
- Reply-To: Bruce Korb <bkorb at pacbell dot net>
It works for me :-)
Of course, this is Solaris2.8.
Please send me a copy of the types.h that gets mismangled.
$ gdiff -c /usr/include/sys/types.h types.h
*** /usr/include/sys/types.h Fri Jan 5 22:06:42 2001
--- types.h Wed Jun 20 13:00:00 2001
***************
*** 1,3 ****
--- 1,12 ----
+ /* DO NOT EDIT THIS FILE.
+
+ It has been auto-edited by fixincludes from:
+
+ "/usr/include/sys/types.h"
+
+ This had to be done to correct non-standard usages in the
+ original, manufacturer supplied header file. */
+
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
***************
*** 98,106 ****
#ifndef _PTRDIFF_T
#define _PTRDIFF_T
#if defined(_LP64) || defined(_I32LPx)
! typedef long ptrdiff_t; /* pointer difference */
#else
! typedef int ptrdiff_t; /* (historical version)
*/
#endif
#endif
--- 107,123 ----
#ifndef _PTRDIFF_T
#define _PTRDIFF_T
#if defined(_LP64) || defined(_I32LPx)
! #if !defined(_GCC_PTRDIFF_T)
! #define _GCC_PTRDIFF_T
! typedef __PTRDIFF_TYPE__ ptrdiff_t;
! #endif
! /* pointer difference */
#else
! #if !defined(_GCC_PTRDIFF_T)
! #define _GCC_PTRDIFF_T
! typedef __PTRDIFF_TYPE__ ptrdiff_t;
! #endif
! /* (historical version) */
#endif
#endif
***************
*** 436,444 ****
#ifndef _SIZE_T
#define _SIZE_T
#if defined(_LP64) || defined(_I32LPx)
! typedef ulong_t size_t; /* size of something in bytes */
#else
! typedef uint_t size_t; /* (historical version) */
#endif
#endif /* _SIZE_T */
--- 453,469 ----
#ifndef _SIZE_T
#define _SIZE_T
#if defined(_LP64) || defined(_I32LPx)
! #if !defined(_GCC_SIZE_T)
! #define _GCC_SIZE_T
! typedef __SIZE_TYPE__ size_t;
! #endif
! /* size of something in bytes */
#else
! #if !defined(_GCC_SIZE_T)
! #define _GCC_SIZE_T
! typedef __SIZE_TYPE__ size_t;
! #endif
! /* (historical version) */
#endif
#endif /* _SIZE_T */