$ make gcc -Wall -ggdb -D_GNU_SOURCE -I. -DSWM_LIB=\"/usr/local/lib/libswmhack.so.0.0\" -c -o scrotwm.o scrotwm.c In file included from /usr/include/errno.h:36, from scrotwm.c:57: /usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory In file included from /usr/include/signal.h:339, from scrotwm.c:62: /usr/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such file or directory In file included from /usr/include/bits/posix1_lim.h:157, from /usr/include/limits.h:145, from /usr/lib/gcc/i486-pc-linux-gnu/4.4.1/include-fixed/limits.h:122, from /usr/lib/gcc/i486-pc-linux-gnu/4.4.1/include-fixed/syslimits.h:7, from /usr/lib/gcc/i486-pc-linux-gnu/4.4.1/include-fixed/limits.h:11, from /usr/include/sys/param.h:26, from scrotwm.c:74: /usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory In file included from scrotwm.c:74: /usr/include/sys/param.h:28:25: error: linux/param.h: No such file or directory In file included from scrotwm.c:83: /usr/include/X11/extensions/Xrandr.h:31:34: error: X11/extensions/randr.h: No such file or directory In file included from scrotwm.c:83: /usr/include/X11/extensions/Xrandr.h:59: error: expected specifier-qualifier-list before SizeID /usr/include/X11/extensions/Xrandr.h:87: error: expected specifier-qualifier-list before Rotation /usr/include/X11/extensions/Xrandr.h:101: error: expected specifier-qualifier-list before Rotation /usr/include/X11/extensions/Xrandr.h:145: error: expected declaration specifiers or ... before Rotation /usr/include/X11/extensions/Xrandr.h:153: error: expected declaration specifiers or ... before Rotation /usr/include/X11/extensions/Xrandr.h:158: error: expected =, ,, ;, asm or __attribute__ before XRRConfigRotations /usr/include/X11/extensions/Xrandr.h:166: error: expected =, ,, ;, asm or __attribute__ before XRRConfigCurrentConfiguration /usr/include/X11/extensions/Xrandr.h:190: error: expected =, ,, ;, asm or __attribute__ before XRRRotations /usr/include/X11/extensions/Xrandr.h:251: error: expected specifier-qualifier-list before Connection /usr/include/X11/extensions/Xrandr.h:327: error: expected specifier-qualifier-list before Rotation /usr/include/X11/extensions/Xrandr.h:348: error: expected declaration specifiers or ... before Rotation scrotwm.c:84:34: error: X11/extensions/XTest.h: No such file or directory scrotwm.c:99:4: error: #error XRandR versions less than 1.0 are not supported scrotwm.c: In function sighdlr: scrotwm.c:1048: error: EINTR undeclared (first use in this function) scrotwm.c:1048: error: (Each undeclared identifier is reported only once scrotwm.c:1048: error: for each function it appears in.) scrotwm.c: In function bar_update: scrotwm.c:1341: error: EAGAIN undeclared (first use in this function) scrotwm.c: In function pressbutton: scrotwm.c:3091: warning: implicit declaration of function XTestFakeButtonEvent scrotwm.c: In function setkeymapping: scrotwm.c:4410: error: PATH_MAX undeclared (first use in this function) scrotwm.c:4410: warning: unused variable keymapping_file scrotwm.c: In function setup_screens: scrotwm.c:6267: error: RRScreenChangeNotifyMask undeclared (first use in this function) scrotwm.c: In function main: scrotwm.c:6322: error: PATH_MAX undeclared (first use in this function) scrotwm.c:6430: error: RRScreenChangeNotify undeclared (first use in this function) scrotwm.c:6467: error: EINTR undeclared (first use in this function) scrotwm.c:6322: warning: unused variable conf make: *** [scrotwm.o] Error 1