patches made with 'diff -w -C1 [...]'.
Use 'patch -l -i <patchfile>' to patch the original source files.
But you certainly might use xev(1) without any patch as well.
How to compile this:
gcc -O -I/usr/openwin/include -DSVR4 -DSYSV -DFUNCPROTO=15 \
-L/usr/openwin/lib -R/usr/openwin/lib \
-lXext -lX11 -lsocket -lnsl -lm xev.c -o xev
gcc -O -I/usr/openwin/include -DSVR4 -DSYSV -DFUNCPROTO=15 \
-L/usr/openwin/lib -R/usr/openwin/lib \
-lXext -lX11 -lsocket -lnsl -lm xev_xfree400.c -o xev_xfree400
[g]cc xev.c -O -o xev -L/usr/lib/X11R6 -lX11 -lm
BTW, the binaries above are using standard libraries:
$ ldd bin/X11/xev
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libw.so.1 => /usr/lib/libw.so.1
libintl.so.1 => /usr/lib/libintl.so.1
libmp.so.1 => /usr/lib/libmp.so.1
$ chatr xev
xev:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
internal name:
xev
shared library list:
dynamic /usr/lib/X11R6/libX11.2
dynamic /usr/lib/libc.1
shared library binding:
deferred
[...]