linamh/sys-libs/glibc/files/2.3.2/glibc-2.3.2-decc-compaq.patch

29 lines
1.4 KiB
Diff
Raw Normal View History

diff -ruN glibc-2.3.2.orig/include/features.h glibc-2.3.2/include/features.h
--- glibc-2.3.2.orig/include/features.h 2003-06-14 00:28:23.000000000 +0100
+++ glibc-2.3.2/include/features.h 2003-06-14 00:58:57.000000000 +0100
@@ -285,7 +285,8 @@
#if defined __GNUC__ \
|| (defined __PGI && defined __i386__ ) \
|| (defined __INTEL_COMPILER && (defined __i386__ || defined __ia64__)) \
- || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
+ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) \
+ && !(defined(__DECC) || defined(__DECCXX))
# define __GLIBC_HAVE_LONG_LONG 1
#endif
diff -ruN glibc-2.3.2.orig/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h glibc-2.3.2/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h
--- glibc-2.3.2.orig/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h 2003-06-14 00:28:24.000000000 +0100
+++ glibc-2.3.2/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h 2003-06-14 00:57:16.000000000 +0100
@@ -64,9 +64,11 @@
{
struct _pthread_fastlock __c_lock; /* Protect against concurrent access */
_pthread_descr __c_waiting; /* Threads waiting on this condition */
+#if !(defined(__DECC) || defined(__DECCXX)) /* hide this from DEC CC/CXX */
char __padding[48 - sizeof (struct _pthread_fastlock)
- sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)];
__pthread_cond_align_t __align;
+#endif /* __DECC */
} pthread_cond_t;