#! /bin/sh # Install modified versions of certain ANSI-incompatible system header files # which are fixed to work correctly with ANSI C # and placed in a directory that GNU C will search. # This works properly on a Sun in system version 3.4; # for other versions, you had better check. # Directory in which to store the results. LIB=/usr/local/lib/gcc-include mkdir ${LIB} for dir in sys sun sundev sunwindow; do if [ -d /usr/include/$dir ]; then mkdir ${LIB}/$dir fi done cp /usr/include/sys/ioctl.h ${LIB}/sys/ioctl.h chmod +w ${LIB}/sys/ioctl.h ex ${LIB}/sys/ioctl.h <