musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-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;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月06日 08:00:15 +0000

AltStyle によって変換されたページ (->オリジナル) /