aboutsummaryrefslogtreecommitdiff
path: root/src/lib/fdio/fdio.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-16 12:58:25 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-09 07:30:35 -0500
commitb1dceeca5a8e5bf948d185728631fee114fac6f2 (patch)
treebf5eebd3d01a34f48d170481a0dac2806a59cc51 /src/lib/fdio/fdio.h
parent7b0d8834f2d762f610291a1c4ffe1f775f46a5f1 (diff)
downloadtor-b1dceeca5a8e5bf948d185728631fee114fac6f2.tar.gz
tor-b1dceeca5a8e5bf948d185728631fee114fac6f2.zip
Include sys/types.h in fdio.h, for "off_t".
Otherwise our compilation depends on include order.
Diffstat (limited to 'src/lib/fdio/fdio.h')
-rw-r--r--src/lib/fdio/fdio.h3
1 files changed, 3 insertions, 0 deletions
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 <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);