diff options
| author | ivmai <ivmai> | 2011-02-19 20:10:41 +0000 |
|---|---|---|
| committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-25 16:03:26 +0400 |
| commit | 43e232fa1613e19aad0eff63b51f20facb9bfe17 (patch) | |
| tree | 397c15d8a2804b1397bdba6f51f8df508dec80de /src/atomic_ops.c | |
| parent | 52ec0c66a426e19c5b99138146b4e22f15dde72e (diff) | |
| download | libatomic_ops-43e232fa1613e19aad0eff63b51f20facb9bfe17.tar.gz | |
2011-02-19 Ivan Maidanski <ivmai@mail.ru>
* src/atomic_ops.c: Include sys/time.h (to get timespec) for NaCl.
* src/atomic_ops_malloc.c (msb): Do the shift by 32 only once (in
a conditional expression) to prevent a compiler warning.
* src/atomic_ops_malloc.c: Expand all tabs to spaces; remove
trailing spaces at EOLn.
Diffstat (limited to 'src/atomic_ops.c')
| -rw-r--r-- | src/atomic_ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/atomic_ops.c b/src/atomic_ops.c index 66fba0d..5588e95 100644 --- a/src/atomic_ops.c +++ b/src/atomic_ops.c @@ -56,6 +56,7 @@ #ifdef AO_USE_NANOSLEEP /* This requires _POSIX_TIMERS feature. */ +# include <sys/time.h> # include <time.h> #elif defined(AO_USE_WIN32_PTHREADS) # include <windows.h> /* for Sleep() */ |
