2 cd $SOURCE_DIRECTORY &&
4 chmod a+w installwatch.c &&
5 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-ld-preload.diff" &&
6 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-errno.diff" &&
7 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-buffer.diff" &&
8 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-cflags.diff" &&
9 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-syslog.diff" &&
10 if [[ "$(uname)" == "GNU/kFreeBSD" ]]
12 patch -p0 < "${SCRIPT_DIRECTORY}/installwatch-glibc-bsd.diff"