diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-09 01:34:39 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-09 01:34:39 -0700 |
commit | 2f93ecceb91ec8b0a18c95787503341780ca9233 (patch) | |
tree | fdeb5f997a4ae19147f1ba490922b3c9bc223b1f /lib | |
parent | d01ba2f14965203aef327c2cebf1474af0f12f90 (diff) | |
download | emacs-2f93ecceb91ec8b0a18c95787503341780ca9233.tar.gz |
Merge from gnulib.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getloadavg.c | 2 | ||||
-rw-r--r-- | lib/timespec.h | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index d79ad136bc9..79ea71787ac 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -28,7 +28,7 @@ macro that comes with autoconf 2.13 or newer. If that isn't an option, then just put AC_CHECK_FUNCS(pstat_getdynamic) in your - configure.in file. + configure.ac file. HAVE_LIBPERFSTAT Define this if your system has the perfstat_cpu_total function in libperfstat (AIX). FIXUP_KERNEL_SYMBOL_ADDR() Adjust address in returned struct nlist. 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 |