2 # patch-apollo-includes -- fix some (but not all!) Apollo brain damage.
4 FILES_TO_PATCH
='sys/types.h setjmp.h'
8 for i
in $FILES_TO_PATCH;
10 cp /bsd4.3
/usr
/include
/$i .
/$i
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
19 typedef char * caddr_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
39 + extern int sigsetjmp (sigjmp_buf env, int savemask);
40 + extern void siglongjmp (sigjmp_buf env, int val);
42 + extern int sigsetjmp();
43 + extern void siglongjmp();
44 + #endif /* _PROTOTYPES */
45 + #else /* not __GNUC__ */
52 extern int sigsetjmp() #options(abnormal);
53 extern void siglongjmp() #options(noreturn);
54 #endif /* _PROTOTYPES */
60 extern int sigsetjmp() #options(abnormal);
61 extern void siglongjmp() #options(noreturn);
62 #endif /* _PROTOTYPES */
63 ! #endif /* not __GNUC__ */