aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2012-07-09 01:34:39 -0700
committerPaul Eggert2012-07-09 01:34:39 -0700
commit2f93ecceb91ec8b0a18c95787503341780ca9233 (patch)
treefdeb5f997a4ae19147f1ba490922b3c9bc223b1f /lib
parentd01ba2f14965203aef327c2cebf1474af0f12f90 (diff)
downloademacs-2f93ecceb91ec8b0a18c95787503341780ca9233.tar.gz
emacs-2f93ecceb91ec8b0a18c95787503341780ca9233.zip
Merge from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/getloadavg.c2
-rw-r--r--lib/timespec.h9
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 @@
28 macro that comes with autoconf 2.13 or newer. 28 macro that comes with autoconf 2.13 or newer.
29 If that isn't an option, then just put 29 If that isn't an option, then just put
30 AC_CHECK_FUNCS(pstat_getdynamic) in your 30 AC_CHECK_FUNCS(pstat_getdynamic) in your
31 configure.in file. 31 configure.ac file.
32 HAVE_LIBPERFSTAT Define this if your system has the 32 HAVE_LIBPERFSTAT Define this if your system has the
33 perfstat_cpu_total function in libperfstat (AIX). 33 perfstat_cpu_total function in libperfstat (AIX).
34 FIXUP_KERNEL_SYMBOL_ADDR() Adjust address in returned struct nlist. 34 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)
65 return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec; 65 return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec;
66} 66}
67 67
68struct timespec timespec_add (struct timespec, struct timespec); 68struct timespec timespec_add (struct timespec, struct timespec)
69struct timespec timespec_sub (struct timespec, struct timespec); 69 _GL_ATTRIBUTE_CONST;
70struct timespec dtotimespec (double); 70struct timespec timespec_sub (struct timespec, struct timespec)
71 _GL_ATTRIBUTE_CONST;
72struct timespec dtotimespec (double)
73 _GL_ATTRIBUTE_CONST;
71 74
72/* Return an approximation to A, of type 'double'. */ 75/* Return an approximation to A, of type 'double'. */
73static inline double 76static inline double