Include sys/types.h in fdio.h, for "off_t".

Otherwise our compilation depends on include order.
This commit is contained in:
Nick Mathewson 2019-12-16 12:58:25 -05:00
parent 7b0d8834f2
commit b1dceeca5a

View file

@ -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);