Hi, gdbserver does not compile for the Android operating system because of missing headers sys/user.h and sys/dir.h and a declaration of errno inside a function. The following patch fixes these problem. Does it look okay? If so, could someone approve and commit it for me? Thanks. -Doug 2008-07-22 Doug Kwan * configure.ac: Check for sys/dir.h and sys.user.h. * config.in configure: Regenerate. * linux-low.c: Include if HAVE_SYS_DIR_H is defined. Include if HAVE_SYS_USER_H is defined. (linux_write_memory): Declare errno if STDC_HEADERS is not defined.