Selaa lähdekoodia

Include util.h and log.h as relative paths.

This shouldn't be necessary, but apparently the Android cross-compiler
doesn't respect -I as well as it should.  (-I is supposed to add to the
*front* of the search path.  Android's gcc wrapper apparently likes to add to
the end.  This is broken, but we need to work around it.)
Nathan Freitas 14 vuotta sitten
vanhempi
commit
8c585cce39
7 muutettua tiedostoa jossa 11 lisäystä ja 8 poistoa
  1. 2 2
      src/common/crypto.c
  2. 2 0
      src/or/buffers.c
  3. 1 0
      src/or/eventdns.c
  4. 1 1
      src/or/or.h
  5. 1 1
      src/tools/tor-checkkey.c
  6. 2 2
      src/tools/tor-gencert.c
  7. 2 2
      src/tools/tor-resolve.c

+ 2 - 2
src/common/crypto.c

@@ -50,9 +50,9 @@
 
 #define CRYPTO_PRIVATE
 #include "crypto.h"
-#include "log.h"
+#include "../common/log.h"
 #include "aes.h"
-#include "util.h"
+#include "../common/util.h"
 #include "container.h"
 #include "compat.h"
 

+ 2 - 0
src/or/buffers.c

@@ -12,6 +12,8 @@
  **/
 #define BUFFERS_PRIVATE
 #include "or.h"
+#include "../common/util.h"
+#include "../common/log.h"
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif

+ 1 - 0
src/or/eventdns.c

@@ -31,6 +31,7 @@
  */
 
 #include "eventdns_tor.h"
+#include "../common/util.h"
 #include <sys/types.h>
 /* #define NDEBUG */
 

+ 1 - 1
src/or/or.h

@@ -82,7 +82,7 @@
 
 #include "crypto.h"
 #include "tortls.h"
-#include "log.h"
+#include "../common/log.h"
 #include "compat.h"
 #include "container.h"
 #include "util.h"

+ 1 - 1
src/tools/tor-checkkey.c

@@ -7,7 +7,7 @@
 #include <stdlib.h>
 #include "crypto.h"
 #include "log.h"
-#include "util.h"
+#include "../common/util.h"
 #include "compat.h"
 #include <openssl/bn.h>
 #include <openssl/rsa.h>

+ 2 - 2
src/tools/tor-gencert.c

@@ -27,8 +27,8 @@
 #define CRYPTO_PRIVATE
 
 #include "compat.h"
-#include "util.h"
-#include "log.h"
+#include "../common/util.h"
+#include "../common/log.h"
 #include "crypto.h"
 #include "address.h"
 

+ 2 - 2
src/tools/tor-resolve.c

@@ -6,9 +6,9 @@
 #include "orconfig.h"
 
 #include "compat.h"
-#include "util.h"
+#include "../common/util.h"
 #include "address.h"
-#include "log.h"
+#include "../common/log.h"
 
 #include <stdio.h>
 #include <stdlib.h>