Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 1995 01:39:46 -0500 (EST)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        current@freebsd.org
Subject:   [PATCH] /usr/src/lib/libc/gen/sysconf.c
Message-ID:  <Pine.BSF.3.91.951208013859.4750B-100000@hub.org>

next in thread | raw e-mail | index | archive | help


Hi...

	Okay, on this one, I made an assumption, that, if incorrect,
please let me know, so that I don't make it again.

	Essentially, <sys/user.h> was getting an 'incomplete structure'
error on e_vm, which is defined as 'struct vmspace e_vm' in <vm/vm.h>.
struct vm_space is defined in <vm/vm_map.h>, which, if I try and include
it somewhere (tried several places...), results in more errors.

	By removing <sys/user.h>, I got an error on 'ru_utime' and
'ru_stime', which was because 'struct timeval' was no longer defined,
which required adding in <sys/time.h>

	So...I replaced <sys/user.h> with <sys/time.h>, and sysconf.c
compiles cleanly.  Therefore, I make the assumption (incorrect?) that
there was nothing included in <sys/user.h> that was required in
sysconf.c...

	
*** lib/libc/gen/sysconf.c.orig Thu Dec  7 22:33:48 1995
--- lib/libc/gen/sysconf.c      Thu Dec  7 22:33:55 1995
***************
*** 39,45 ****
  #endif /* LIBC_SCCS and not lint */

  #include <sys/param.h>
! #include <sys/user.h>
  #include <sys/sysctl.h>
  #include <sys/resource.h>

--- 39,45 ----
  #endif /* LIBC_SCCS and not lint */

  #include <sys/param.h>
! #include <sys/time.h>
  #include <sys/sysctl.h>
  #include <sys/resource.h>


Marc G. Fournier | POP Mail  Telnet Acct  DNS Hosting
scrappy@hub.org  |  WWW Services   Database Services  | Knowledge, 
 soon to be:     |                                    | Information and
scrappy@ki.net   |      WWW: http://hub.org           | Communications, Inc


--AAA04360.818401936/hub.org--


Marc G. Fournier | POP Mail  Telnet Acct  DNS Hosting
scrappy@hub.org  |  WWW Services   Database Services  | Knowledge, 
 soon to be:     |                                    | Information and
scrappy@ki.net   |      WWW: http://hub.org           | Communications, Inc




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951208013859.4750B-100000>