]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Include sys/types.h in fdio.h, for "off_t".
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Dec 2019 17:58:25 +0000 (12:58 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 9 Jan 2020 12:30:35 +0000 (07:30 -0500)
Otherwise our compilation depends on include order.

src/lib/fdio/fdio.h

index 8395af353b6d6788d4415ed5ae45a5926d2d8382..751d01bc0ab432364593a8c7a0509be44bf052b3 100644 (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);