diff options
| author | Elliott Hughes <enh@google.com> | 2015-01-21 19:42:40 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-21 19:42:44 +0000 |
| commit | 2a8c929aaf8d34d2b6e89ed9c8b6da163316143e (patch) | |
| tree | 992748f27c1ee609a1dba97d7a9e19b0df7689c0 /libc/stdio/local.h | |
| parent | 8476b8ed9e290d79cd00e7801c505268f0e8ec15 (diff) | |
| parent | 8c4994bbc1a9a01e34ea92c91eb5b2d1a27bd074 (diff) | |
| download | bionic-2a8c929aaf8d34d2b6e89ed9c8b6da163316143e.zip bionic-2a8c929aaf8d34d2b6e89ed9c8b6da163316143e.tar.gz bionic-2a8c929aaf8d34d2b6e89ed9c8b6da163316143e.tar.bz2 | |
Merge "Implement __fsetlocking."
Diffstat (limited to 'libc/stdio/local.h')
| -rw-r--r-- | libc/stdio/local.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/local.h b/libc/stdio/local.h index 46b11f1..7033eda 100644 --- a/libc/stdio/local.h +++ b/libc/stdio/local.h @@ -111,8 +111,8 @@ extern void __atexit_register_cleanup(void (*)(void)); (fp)->_lb._base = NULL; \ } -#define FLOCKFILE(fp) flockfile(fp) -#define FUNLOCKFILE(fp) funlockfile(fp) +#define FLOCKFILE(fp) if (_EXT(fp)->_stdio_handles_locking) flockfile(fp) +#define FUNLOCKFILE(fp) if (_EXT(fp)->_stdio_handles_locking) funlockfile(fp) #define FLOATING_POINT #define PRINTF_WIDE_CHAR |
