Linux compile patch This patch is also found in the xv 3.10a rollup 2001-05-12 patch. If you applied the xv 3.10a rollup 2001-05-12 patch you do NOT need to apply this patch. For details on the xv 3.10a rollup 2001-05-12 patch see: http://www.isthe.com/chongo/src/xv-patch/index.html This patch also duplicates the Linux user's Makefile patch: http://www.isthe.com/chongo/src/xv-patch/Linux-Makefile.patch =-= Disclaimers This patch is being distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This patch is in the public domain and is NOT copyrighted. That is, use this patch at your own risk. I do NOT maintain xv. Please do NOT send me xv bug reports. Send xv bug reports (and fixes) to the xv tech EMail address: http://www.trilon.com/xv/index.html#email I did NOT write xv. You are welcome to ``Share and Enjoy'' xv and send $25 to John Bradley. :-) chongo (http://www.isthe.com/chongo/index.html) /\oo/\ =-= *** xv.h.init Sat May 12 16:01:23 2001 --- xv.h Sat May 12 16:01:23 2001 *************** *** 62,71 **** #endif ! #ifdef LINUX # ifndef _LINUX_LIMITS_H # include # endif #endif --- 62,73 ---- #endif ! #if defined(__linux__) # ifndef _LINUX_LIMITS_H # include # endif + # define USLEEP + # define BSDTYPES #endif *************** *** 308,314 **** #ifndef VMS /* VMS hates multi-line definitions */ # if defined(SVR4) || defined(SYSV) || defined(sco) || \ ! defined(XENIX) || defined(__osf__) # undef USE_GETCWD # define USE_GETCWD /* use 'getcwd()' instead of 'getwd()' */ # endif --- 310,316 ---- #ifndef VMS /* VMS hates multi-line definitions */ # if defined(SVR4) || defined(SYSV) || defined(sco) || \ ! defined(XENIX) || defined(__osf__) || defined(__linux__) # undef USE_GETCWD # define USE_GETCWD /* use 'getcwd()' instead of 'getwd()' */ # endif *** Makefile.init Sat May 12 13:19:43 2001 --- Makefile Sat May 12 13:20:08 2001 *************** *** 1,8 **** # Makefile for xv # your C compiler (and options) of choice ! CC = cc ! # CC = gcc -ansi # use this if you're using 'cc' on a DEC Alpha (OSF/1) or MIPS (Ultrix) system: # CC = cc -std1 -Olimit 750 --- 1,8 ---- # Makefile for xv # your C compiler (and options) of choice ! # CC = cc ! CC = gcc -ansi # use this if you're using 'cc' on a DEC Alpha (OSF/1) or MIPS (Ultrix) system: # CC = cc -std1 -Olimit 750