diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-03 13:53:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-03 13:53:36 -0400 |
commit | 821d29e42040789c59d271ba2f1d87a54d6d1435 (patch) | |
tree | 309e30f2d46a3aa849c368b7fa217da56c1ed572 /src/lib | |
parent | 99b87d7ca48c5ed80aec5f24902843f72975bfea (diff) | |
download | tor-821d29e42040789c59d271ba2f1d87a54d6d1435.tar.gz tor-821d29e42040789c59d271ba2f1d87a54d6d1435.zip |
fdio.c: add more includes.
This is just in case there is some rogue platform that uses a
nonstandard value for SEEK_*, and does not define that macro in
unistd.h. I think that's unlikely, but it's conceivable.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/fdio/fdio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/fdio/fdio.c b/src/lib/fdio/fdio.c index 6c87af791d..078af6a9ba 100644 --- a/src/lib/fdio/fdio.c +++ b/src/lib/fdio/fdio.c @@ -17,12 +17,16 @@ #ifdef _WIN32 #include <windows.h> #endif +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif #include "lib/fdio/fdio.h" #include "lib/cc/torint.h" #include "lib/err/torerr.h" #include <stdlib.h> +#include <stdio.h> /** @{ */ /** Some old versions of Unix didn't define constants for these values, |