From: H.J. Lu (hlu@yoda.eecs.wsu.edu)
Date: 09/21/92


From: hlu@yoda.eecs.wsu.edu (H.J. Lu)
Subject: Re: PROBLEM COMPILING OLVWM
Date: 22 Sep 1992 03:31:41 GMT

In article <1992Sep22.002817.26957@ucc.su.OZ.AU> peterw@archsci.arch.su.oz.au (Peter Williams ) writes:
>In article <1992Sep21.105129.29375@athena.mit.edu>, nmp08@rz.uni-kiel.dbp.de (21-SEP-1992 12:47:04.70) writes:
>|> Hi again!
>|>
>|> I finally managed to compile olvwm from tsx-11. But one problem encountered
>|> during the compilation: a constant named RLIMIT_NOFILE wasn't defined.
> ^^^^^^^^^^^^^
>The relevant variable is (I believe) misspelt as RLIMIT_OFILE in one of the
>standard header files (I can't remember which of the top of my head) and a quick
>fix is to
>#define RLIMIT_NOFILE RLIMIT_OFILE
>in the appropriate olvwm file.
>
>A quick way to find the appropriate header file if you want to repair that is
>to grep for RLIMIT_OFILE in the various include directories.
>
>|> I wonder to which header file it belongs and what the correct value is.
>|> I'm using gcc 2.2.2d7 with 4.1 libraries and header files together with
>|> X11 v1.1. Any ideas?
>|>

What is RLIMIT_NOFILE used for? Under Linux, we have

linux/resource.h:#define RLIMIT_OFILE 8 /* max number of open files */

which is used in [set|get]rlimit ().

H.J.