mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-25 03:05:08 +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:
parent
3bbe72d3dd
commit
a0a9bf2e58
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33703
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue