commit b1dceeca5a8e5bf948d185728631fee114fac6f2 Author: Nick Mathewson nickm@torproject.org Date: Mon Dec 16 12:58:25 2019 -0500
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(+)
diff --git a/src/lib/fdio/fdio.h b/src/lib/fdio/fdio.h index 8395af353..751d01bc0 100644 --- a/src/lib/fdio/fdio.h +++ b/src/lib/fdio/fdio.h @@ -13,6 +13,9 @@ #define TOR_FDIO_H
#include <stddef.h> +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif
off_t tor_fd_getpos(int fd); int tor_fd_setpos(int fd, off_t pos);