diff options
author | guenther <> | 2014-07-20 01:38:40 +0000 |
---|---|---|
committer | guenther <> | 2014-07-20 01:38:40 +0000 |
commit | 1cf6dac402bf6b677a14fb33c54ee0fcb4021bee (patch) | |
tree | 5e6c4eae816d1f4766599fa8e5f8fea5d7d1a35e /src/regress/lib/libc/stdio_threading/include/local.h | |
parent | 137c95377460c8ff91a5fd5101d88c29c9211dd6 (diff) | |
download | openbsd-1cf6dac402bf6b677a14fb33c54ee0fcb4021bee.tar.gz openbsd-1cf6dac402bf6b677a14fb33c54ee0fcb4021bee.tar.bz2 openbsd-1cf6dac402bf6b677a14fb33c54ee0fcb4021bee.zip |
Make sure the correct errno is reported by warn* or err* and not
the errno of an intervening cleanup operation like close/unlink/etc.
Diff from Doug Hogan (doug (at) acyclic.org)
Diffstat (limited to 'src/regress/lib/libc/stdio_threading/include/local.h')
-rw-r--r-- | src/regress/lib/libc/stdio_threading/include/local.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/regress/lib/libc/stdio_threading/include/local.h b/src/regress/lib/libc/stdio_threading/include/local.h index 8d0e628cf6..7a7822a452 100644 --- a/src/regress/lib/libc/stdio_threading/include/local.h +++ b/src/regress/lib/libc/stdio_threading/include/local.h | |||
@@ -15,6 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <err.h> | 17 | #include <err.h> |
18 | #include <errno.h> | ||
18 | #include <stdio.h> | 19 | #include <stdio.h> |
19 | #include <stdlib.h> | 20 | #include <stdlib.h> |
20 | #include <string.h> | 21 | #include <string.h> |