File nethack-syscall.patch of Package nethack
--- include/unixconf.h +++ include/unixconf.h @@ -322,10 +322,8 @@ #if defined(GNOME_GRAPHICS) #if defined(LINUX) -# include <linux/unistd.h> -# if defined(__NR_getresuid) && defined(__NR_getresgid) /* ie., >= v2.1.44 */ -# define GETRES_SUPPORT -# endif +# include <unistd.h> +# define GETRES_SUPPORT #else # if defined(BSD) || defined(SVR4) /*