Add #ifndef _POSIX_SOURCE around the timecounter definitions

which rely on u_int being defined in sys/types.h, but isn't
if _POSIX_SOURCE is defined.

This fixes the gnu/lib/libstdc++ breakage. I've successfully completed
a make world after this and a kernel (without many devices).
This commit is contained in:
jb 1998-02-21 03:20:46 +00:00
parent 27b15ef959
commit 32528e3636
2 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)time.h 8.5 (Berkeley) 5/4/95
* $Id: time.h,v 1.16 1997/12/28 13:36:09 phk Exp $
* $Id: time.h,v 1.17 1998/02/20 16:36:16 phk Exp $
*/
#ifndef _SYS_TIME_H_
@ -77,6 +77,7 @@ struct timezone {
#define DST_EET 5 /* Eastern European dst */
#define DST_CAN 6 /* Canada */
#ifndef _POSIX_SOURCE
/*
* Structure used to interface to the machine dependent hardware
* support for timekeeping.
@ -140,6 +141,7 @@ struct timecounter {
struct timecounter *other;
struct timecounter *tweak;
};
#endif
/* Operations on timevals. */
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)time.h 8.5 (Berkeley) 5/4/95
* $Id: time.h,v 1.16 1997/12/28 13:36:09 phk Exp $
* $Id: time.h,v 1.17 1998/02/20 16:36:16 phk Exp $
*/
#ifndef _SYS_TIME_H_
@ -77,6 +77,7 @@ struct timezone {
#define DST_EET 5 /* Eastern European dst */
#define DST_CAN 6 /* Canada */
#ifndef _POSIX_SOURCE
/*
* Structure used to interface to the machine dependent hardware
* support for timekeeping.
@ -140,6 +141,7 @@ struct timecounter {
struct timecounter *other;
struct timecounter *tweak;
};
#endif
/* Operations on timevals. */
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0