fixincludes 798 B

123456789101112131415161718192021222324
  1. # Install modified versions of certain ANSI-incompatible system header files
  2. # which are fixed to work correctly with ANSI C
  3. # and placed in a directory that GNU C will search.
  4. # This works properly on a Sun in system version 3.4;
  5. # for other versions, you had better check.
  6. mkdir /usr/local/lib/gcc-include
  7. mkdir /usr/local/lib/gcc-include/sys
  8. cp /usr/include/sys/ioctl.h /usr/local/lib/gcc-include/sys/ioctl.h
  9. chmod +w /usr/local/lib/gcc-include/sys/ioctl.h
  10. ex /usr/local/lib/gcc-include/sys/ioctl.h <<EOF
  11. g/_IO/s/(\(.\),/('\1',/
  12. g/#define._IO/s/'x'/x/g
  13. wq
  14. EOF
  15. cp /usr/include/sys/ttychars.h /usr/local/lib/gcc-include/sys/ttychars.h
  16. chmod +w /usr/local/lib/gcc-include/sys/ttychars.h
  17. ex /usr/local/lib/gcc-include/sys/ttychars.h << EOF
  18. g/CTRL/s/(\(.\))/('\1')/
  19. g/#define.CTRL/s/'c'/c/g
  20. wq
  21. EOF