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

ioerror at torproject.org ioerror at torproject.org
Thu Nov 21 00:15:20 UTC 2013


commit 512283cdc016396d67f81db7b391405a43aa1d9a
Author: Fabian Keil <fk at fabiankeil.de>
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>



More information about the tor-commits mailing list