configure.in: Remove ENABLE_STD_NAMESPACE.
[official-gcc.git] / gcc / patch-apollo-includes
blob8daf88cb54e8ee0f27435eefee5ee32c905d0bb7
1 #!/bin/sh
2 # patch-apollo-includes -- fix some (but not all!) Apollo brain damage.
4 FILES_TO_PATCH='sys/types.h setjmp.h'
6 mkdir sys
8 for i in $FILES_TO_PATCH;
9 do
10 cp /bsd4.3/usr/include/$i ./$i
11 done
13 patch -b -apollo <<'EOP'
14 *** /bsd4.3/usr/include/sys/types.h Fri Apr 8 20:29:06 1988
15 --- sys/types.h Wed Feb 26 21:17:57 1992
16 ***************
17 *** 38,44 ****
18 --- 38,47 ----
19 typedef char * caddr_t;
20 typedef u_long ino_t;
21 typedef long swblk_t;
22 + #ifndef _SIZE_T
23 + #define _SIZE_T
24 typedef long size_t;
25 + #endif
26 typedef long time_t;
27 typedef long dev_t;
28 typedef long off_t;
29 *** /bsd4.3/usr/include/setjmp.h Fri Feb 3 21:40:21 1989
30 --- setjmp.h Sun Feb 23 19:06:55 1992
31 ***************
32 *** 24,30 ****
33 --- 24,39 ----
34 #endif
37 + #ifdef __GNUC__
38 #ifdef _PROTOTYPES
39 + extern int sigsetjmp (sigjmp_buf env, int savemask);
40 + extern void siglongjmp (sigjmp_buf env, int val);
41 + #else
42 + extern int sigsetjmp();
43 + extern void siglongjmp();
44 + #endif /* _PROTOTYPES */
45 + #else /* not __GNUC__ */
46 + #ifdef _PROTOTYPES
47 extern int sigsetjmp(
48 sigjmp_buf env,
49 int savemask
50 ***************
51 *** 37,43 ****
52 extern int sigsetjmp() #options(abnormal);
53 extern void siglongjmp() #options(noreturn);
54 #endif /* _PROTOTYPES */
56 #undef _PROTOTYPES
58 #ifdef __cplusplus
59 --- 46,52 ----
60 extern int sigsetjmp() #options(abnormal);
61 extern void siglongjmp() #options(noreturn);
62 #endif /* _PROTOTYPES */
63 ! #endif /* not __GNUC__ */
64 #undef _PROTOTYPES
66 #ifdef __cplusplus
67 EOP
69 exit 0