Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header, so POSIX

sources can't include it.  However, until recently it was included
by <sys/stat.h>, so it should have been (almost) entirely inside
_POSIX_SOURCE ifdefs for <sys/stat.h> to be (almost) POSIX.1 conformant,
but it was only about half inside _POSIX_SOURCE ifdefs.
This commit is contained in:
Bruce Evans 1998-02-25 02:14:14 +00:00
parent cfaa93b26b
commit fb156c95b6
2 changed files with 2 additions and 10 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)time.h 8.5 (Berkeley) 5/4/95
* $Id: time.h,v 1.17 1998/02/20 16:36:16 phk Exp $
* $Id: time.h,v 1.18 1998/02/21 03:20:46 jb Exp $
*/
#ifndef _SYS_TIME_H_
@ -77,7 +77,6 @@ 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.
@ -141,7 +140,6 @@ struct timecounter {
struct timecounter *other;
struct timecounter *tweak;
};
#endif
/* Operations on timevals. */
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
@ -220,7 +218,6 @@ void timevalsub __P((struct timeval *, struct timeval *));
#else /* !KERNEL */
#include <time.h>
#ifndef _POSIX_SOURCE
#include <sys/cdefs.h>
__BEGIN_DECLS
@ -231,7 +228,6 @@ int setitimer __P((int, const struct itimerval *, struct itimerval *));
int settimeofday __P((const struct timeval *, const struct timezone *));
int utimes __P((const char *, const struct timeval *));
__END_DECLS
#endif /* !POSIX */
#endif /* !KERNEL */

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)time.h 8.5 (Berkeley) 5/4/95
* $Id: time.h,v 1.17 1998/02/20 16:36:16 phk Exp $
* $Id: time.h,v 1.18 1998/02/21 03:20:46 jb Exp $
*/
#ifndef _SYS_TIME_H_
@ -77,7 +77,6 @@ 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.
@ -141,7 +140,6 @@ struct timecounter {
struct timecounter *other;
struct timecounter *tweak;
};
#endif
/* Operations on timevals. */
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
@ -220,7 +218,6 @@ void timevalsub __P((struct timeval *, struct timeval *));
#else /* !KERNEL */
#include <time.h>
#ifndef _POSIX_SOURCE
#include <sys/cdefs.h>
__BEGIN_DECLS
@ -231,7 +228,6 @@ int setitimer __P((int, const struct itimerval *, struct itimerval *));
int settimeofday __P((const struct timeval *, const struct timezone *));
int utimes __P((const char *, const struct timeval *));
__END_DECLS
#endif /* !POSIX */
#endif /* !KERNEL */