projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f2374ed
)
cleanup namespace in sys/time.h
author
Rich Felker
<dalias@aerifal.cx>
Sun, 27 Feb 2011 08:48:19 +0000
(
03:48
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 27 Feb 2011 08:48:19 +0000
(
03:48
-0500)
include/sys/time.h
patch
|
blob
|
history
diff --git
a/include/sys/time.h
b/include/sys/time.h
index
edaf6af
..
766ac72
100644
(file)
--- a/
include/sys/time.h
+++ b/
include/sys/time.h
@@
-17,10
+17,7
@@
extern "C" {
int gettimeofday (struct timeval *, void *);
int gettimeofday (struct timeval *, void *);
-/* extensions */
-int settimeofday (const struct timeval *, void *);
-int adjtime (const struct timeval *, struct timeval *);
-
+#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
#define ITIMER_REAL 0
#define ITIMER_VIRTUAL 1
#define ITIMER_REAL 0
#define ITIMER_VIRTUAL 1
@@
-36,7
+33,11
@@
int getitimer (int, struct itimerval *);
int setitimer (int, const struct itimerval *, struct itimerval *);
int utimes (const char *, const struct timeval [2]);
int setitimer (int, const struct itimerval *, struct itimerval *);
int utimes (const char *, const struct timeval [2]);
+#endif
+
#ifdef _GNU_SOURCE
#ifdef _GNU_SOURCE
+int settimeofday (const struct timeval *, void *);
+int adjtime (const struct timeval *, struct timeval *);
struct timezone {
int tz_minuteswest;
int tz_dsttime;
struct timezone {
int tz_minuteswest;
int tz_dsttime;