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

[tor-commits] [tlsdate/master] Include <sys/stat.h> in src/util.c



commit 512283cdc016396d67f81db7b391405a43aa1d9a
Author: Fabian Keil <fk@xxxxxxxxxxxxx>
Date:   Wed Nov 20 15:02:25 2013 +0100

    Include <sys/stat.h> in src/util.c
    
    On FreeBSD 11-CURRENT this fixes the compilation failure:
    
    src/util.c: In function 'file_write':
    src/util.c:256: error: 'S_IRUSR' undeclared (first use in this function)
    src/util.c:256: error: (Each undeclared identifier is reported only once
    src/util.c:256: error: for each function it appears in.)
    src/util.c:256: error: 'S_IWUSR' undeclared (first use in this function)
    *** Error code 1
---
 src/util.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util.c b/src/util.c
index 51f2492..3cf9ea9 100644
--- a/src/util.c
+++ b/src/util.c
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
+#include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/wait.h>

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