From b1dceeca5a8e5bf948d185728631fee114fac6f2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 16 Dec 2019 12:58:25 -0500 Subject: Include sys/types.h in fdio.h, for "off_t". Otherwise our compilation depends on include order. --- src/lib/fdio/fdio.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/fdio') diff --git a/src/lib/fdio/fdio.h b/src/lib/fdio/fdio.h index 8395af353b..751d01bc0a 100644 --- a/src/lib/fdio/fdio.h +++ b/src/lib/fdio/fdio.h @@ -13,6 +13,9 @@ #define TOR_FDIO_H #include +#ifdef HAVE_SYS_TYPES_H +#include +#endif off_t tor_fd_getpos(int fd); int tor_fd_setpos(int fd, off_t pos); -- cgit v1.2.3-54-g00ecf