--- lib/libxview/sel/sel_agent.c.orig 1994-06-26 20:46:20.000000000 +0200 +++ lib/libxview/sel/sel_agent.c 2003-12-30 01:31:13.000000000 +0100 @@ -63,7 +63,7 @@ static Seln_result seln_do_request_from_ static void selection_agent_do_function(); static Atom get_atom(); static Seln_attribute save_atom(); - +static int waitforReadableTimeout(); Xv_private Seln_result seln_convert_request_to_property(); /* called by seln_svc.c @@ -309,7 +309,11 @@ seln_do_request_from_file(attr, context, struct stat stat_buf; int count, size; char *destp; +#if (defined(BSD) && (BSD >= 199306)) + extern off_t lseek(); +#else extern long lseek(); +#endif if (fstat(fd, &stat_buf) != 0) { perror(XV_MSG("Agent couldn't reply about a file"));