[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Include sys/types.h in fdio.h, for "off_t".



commit b1dceeca5a8e5bf948d185728631fee114fac6f2
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits