1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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:
John Birrell 1998-02-21 03:20:46 +00:00
parent 3bbe72d3dd
commit a0a9bf2e58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33703
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