summaryrefslogtreecommitdiff
path: root/src/lib/fdio/fdio.h
diff options
context:
space:
mode:
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 9aa6bfd796..99bc33c64b 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);