From: Matt Armstrong <matt_armstrong@bigfoot.com>
To: zsh-workers@math.gatech.edu
Subject: PATCH: zsh-3.1.5-pws-6: cygwin rlimit config fix
Date: 31 Jan 1999 18:44:24 -0800 [thread overview]
Message-ID: <upv7ulu5z.fsf@bigfoot.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 941 bytes --]
Zsh's makepro.awk script currently pulls all the prototypes out of the
source file regardless of whether they're compiled into the image.
This causes a problem with with exec.pro, since it pulls out
prototypes for current_limits, which is in terms of the RLIM_NLIMITS
#define. If HAVE_GETRLIMIT isn't defined, RLIM_NLIMITS probably isn't
either. The upshot is that exec.pro doesn't compile when running
under cygwin.
It also causes a few warnings to have prototypes for static functions
that are never defined.
The fix I used was to have makepro.awk handle things like
/**/
#ifdef HAVE_GETRLIMIT
and spit them out in the .pro file along with the prototypes like so:
#ifdef HAVE_GETRLIMIT
extern struct rlimit current_limits[RLIM_NLIMITS];
extern struct rlimit limits[RLIM_NLIMITS];
extern int zsetlimit _((int limnum,char*nam));
extern int setlimits _((char*nam));
#endif /* HAVE_GETRLIMIT */
...which nicely avoids the problem.
[-- Attachment #2: Fix for rlimit config problem --]
[-- Type: application/x-patch, Size: 2076 bytes --]
reply other threads:[~1999-02-01 2:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=upv7ulu5z.fsf@bigfoot.com \
--to=matt_armstrong@bigfoot.com \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).