summaryrefslogtreecommitdiff
path: root/lib/timespec.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/timespec.h')
-rw-r--r--lib/timespec.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/timespec.h b/lib/timespec.h
index 388ddb83a76..a58707947ce 100644
--- a/lib/timespec.h
+++ b/lib/timespec.h
@@ -65,9 +65,12 @@ timespec_sign (struct timespec a)
return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec;
}
-struct timespec timespec_add (struct timespec, struct timespec);
-struct timespec timespec_sub (struct timespec, struct timespec);
-struct timespec dtotimespec (double);
+struct timespec timespec_add (struct timespec, struct timespec)
+ _GL_ATTRIBUTE_CONST;
+struct timespec timespec_sub (struct timespec, struct timespec)
+ _GL_ATTRIBUTE_CONST;
+struct timespec dtotimespec (double)
+ _GL_ATTRIBUTE_CONST;
/* Return an approximation to A, of type 'double'. */
static inline double