projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix use of memset without declaration in sched.h cpu set macros
[musl]
/
include
/
time.h
diff --git
a/include/time.h
b/include/time.h
index
6124ef1
..
672b3fc
100644
(file)
--- a/
include/time.h
+++ b/
include/time.h
@@
-35,8
+35,7
@@
extern "C" {
#define __tm_zone tm_zone
#endif
#define __tm_zone tm_zone
#endif
-struct tm
-{
+struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_sec;
int tm_min;
int tm_hour;
@@
-78,8
+77,7
@@
char *ctime_r (const time_t *, char *);
void tzset (void);
void tzset (void);
-struct itimerspec
-{
+struct itimerspec {
struct timespec it_interval;
struct timespec it_value;
};
struct timespec it_interval;
struct timespec it_value;
};
@@
-113,14
+111,15
@@
int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct iti
int timer_gettime (timer_t, struct itimerspec *);
int timer_getoverrun (timer_t);
int timer_gettime (timer_t, struct itimerspec *);
int timer_getoverrun (timer_t);
+extern char *tzname[2];
+
#endif
#endif
-#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#if defined(_XOPEN_SOURCE) || defined(_
BSD_SOURCE) || defined(_
GNU_SOURCE)
char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);
extern int daylight;
extern long timezone;
char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);
extern int daylight;
extern long timezone;
-extern char *tzname[2];
extern int getdate_err;
struct tm *getdate (const char *);
#endif
extern int getdate_err;
struct tm *getdate (const char *);
#endif