diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-27 03:48:19 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-27 03:48:19 -0500 |
commit | b1b465c4382d6956e2973b70d644b0c20f530430 (patch) | |
tree | 0ed36b7a80053b6a16f85dbe9624cffd182451ad /include/sys/time.h | |
parent | f2374ed852654ca13404986d8c04f82bf58812cb (diff) | |
download | musl-b1b465c4382d6956e2973b70d644b0c20f530430.tar.gz musl-b1b465c4382d6956e2973b70d644b0c20f530430.tar.xz musl-b1b465c4382d6956e2973b70d644b0c20f530430.zip |
cleanup namespace in sys/time.h
Diffstat (limited to 'include/sys/time.h')
-rw-r--r-- | include/sys/time.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sys/time.h b/include/sys/time.h index edaf6af6..766ac728 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -17,10 +17,7 @@ extern "C" { 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 @@ -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]); +#endif + #ifdef _GNU_SOURCE +int settimeofday (const struct timeval *, void *); +int adjtime (const struct timeval *, struct timeval *); struct timezone { int tz_minuteswest; int tz_dsttime; |