make[3]: Entering directory `/home/tom/openocd/src/jtag'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/helper -g -O2 -c jtag.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/helper -g -O2 -c bitbang.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/helper -g -O2 -c parport.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/helper -g -O2 -c amt_jtagaccel.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/helper -g -O2 -c ep93xx.c
ep93xx.c: In function `set_gonk_mode':
ep93xx.c:134: error: `PROT_READ' undeclared (first use in this function)
ep93xx.c:134: error: (Each undeclared identifier is reported only once
ep93xx.c:134: error: for each function it appears in.)
ep93xx.c:134: error: `PROT_WRITE' undeclared (first use in this function)
ep93xx.c:135: error: `MAP_SHARED' undeclared (first use in this function)
ep93xx.c:135: warning: assignment makes pointer from integer without a cast
ep93xx.c:136: error: `MAP_FAILED' undeclared (first use in this function)
ep93xx.c: In function `ep93xx_init':
ep93xx.c:156: error: `O_RDWR' undeclared (first use in this function)
ep93xx.c:156: error: `O_SYNC' undeclared (first use in this function)
ep93xx.c:162: error: `PROT_READ' undeclared (first use in this function)
ep93xx.c:162: error: `PROT_WRITE' undeclared (first use in this function)
ep93xx.c:163: error: `MAP_SHARED' undeclared (first use in this function)
ep93xx.c:163: warning: assignment makes pointer from integer without a cast
ep93xx.c:164: error: `MAP_FAILED' undeclared (first use in this function)
make[3]: *** [ep93xx.o] Error 1
make[3]: Leaving directory `/home/tom/openocd/src/jtag'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tom/openocd/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tom/openocd'
make: *** [all-recursive-am] Error 2
tom@Loft:~/openocd$