Date: Thu, 05 Feb 2004 15:10:15 +0100 From: Matthias Andree <matthias.andree@gmx.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: standards/62388: sys/resource.h does not pull in dependencies Message-ID: <E1AokCt-00039R-Aa@libertas.emma.line.org> Resent-Message-ID: <200402051420.i15EKCxk044793@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 62388
>Category: standards
>Synopsis: sys/resource.h does not pull in dependencies
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-standards
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 05 06:20:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Matthias Andree
>Release: FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.9-STABLE FreeBSD 4.9-STABLE #80: Wed Feb 4 11:48:06 CET 2004 root@libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386
>Description:
POSIX shows this SYNOPSIS (omitting angle brackets to support send-pr)
#include sys/resource.h
int getrlimit(int resource, struct rlimit *rlp);
int setrlimit(int resource, const struct rlimit *rlp);
FreeBSD however needs sys/types.h and sys/time.h in addition to that.
>How-To-Repeat:
Use this in an autoconf script and run autoconf, then ./configure
AC_CHECK_TYPES([rlim_t],,,[#include <sys/resource.h>])
This works virtually everywhere, Linux, Solaris, SunOS 4.1, but not on FreeBSD
>Fix:
Have sys/resource.h include the relevant portions of sys/types.h and sys/time.h
>Release-Note:
>Audit-Trail:
>Unformatted:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1AokCt-00039R-Aa>
