[Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD.
burin080 at planet.nl
burin080 at planet.nl
Thu Jun 18 02:06:08 PDT 2009
> Thanks for the fix. I'm curious: what error do you get without this
> patch?
---
conkeror-spawn-helper.c: In function 'main':
conkeror-spawn-helper.c:234: error: storage size of 'file_lim' isn't known
conkeror-spawn-helper.c:236: error: 'RLIMIT_NOFILE' undeclared (first use in this function)
conkeror-spawn-helper.c:236: error: (Each undeclared identifier is reported only once
conkeror-spawn-helper.c:236: error: for each function it appears in.)
*** Error code 1
---
The header file <sys/resource.h> defines rlimit related structs, functions and constants. It's not being #included on FreeBSD.
Digging deeper, I have found the reason for this:
On Slackware:
$ grep -n '#include <sys/resource.h>' /usr/include/sys/wait.h
32:#include <sys/resource.h>
On FreeBSD:
$ grep -n '#include <sys/resource.h>' /usr/include/sys/wait.h
(nothing)
My patch #includes the header file manually instead of relying on <sys/wait.h> to do it.
Cheers,
Ricardo Buring
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/conkeror/attachments/20090618/5132c55c/attachment.html>
More information about the Conkeror
mailing list