diff options
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | src/common/aes.h | 2 | ||||
-rw-r--r-- | src/common/container.h | 1 | ||||
-rw-r--r-- | src/common/log.h | 2 | ||||
-rw-r--r-- | src/common/test.h | 2 | ||||
-rw-r--r-- | src/common/tortls.h | 4 | ||||
-rw-r--r-- | src/common/util.h | 6 | ||||
-rw-r--r-- | src/or/Makefile.am | 4 | ||||
-rw-r--r-- | src/or/circuitlist.c | 3 | ||||
-rw-r--r-- | src/or/config.c | 6 | ||||
-rw-r--r-- | src/or/dns.c | 2 | ||||
-rw-r--r-- | src/or/eventdns.c | 4 | ||||
-rw-r--r-- | src/or/eventdns_tor.h | 2 | ||||
-rw-r--r-- | src/or/or.h | 52 | ||||
-rw-r--r-- | src/or/relay.c | 2 | ||||
-rw-r--r-- | src/or/test.c | 6 | ||||
-rw-r--r-- | src/tools/Makefile.am | 2 | ||||
-rw-r--r-- | src/tools/tor-gencert.c | 8 | ||||
-rw-r--r-- | src/tools/tor-resolve.c | 6 |
19 files changed, 56 insertions, 60 deletions
diff --git a/configure.in b/configure.in index ce045f486b..5539c91d37 100644 --- a/configure.in +++ b/configure.in @@ -10,7 +10,7 @@ AM_CONFIG_HEADER(orconfig.h) AC_CANONICAL_HOST if test -f /etc/redhat-release ; then - CFLAGS="$CFLAGS -I/usr/kerberos/include" + CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" fi AC_ARG_ENABLE(debug, diff --git a/src/common/aes.h b/src/common/aes.h index 5dbd6f1f72..0962e7261b 100644 --- a/src/common/aes.h +++ b/src/common/aes.h @@ -14,7 +14,7 @@ * \brief Headers for aes.c */ -#include "../common/torint.h" +#include "torint.h" struct aes_cnt_cipher; typedef struct aes_cnt_cipher aes_cnt_cipher_t; diff --git a/src/common/container.h b/src/common/container.h index 36df117666..2953b0d68f 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -8,7 +8,6 @@ #define CONTAINER_H_ID \ "$Id$" -#include "compat.h" #include "util.h" /** A resizeable list of pointers, with associated helpful functionality. diff --git a/src/common/log.h b/src/common/log.h index e686140459..4a29375fa4 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -13,7 +13,7 @@ #ifndef __LOG_H #define LOG_H_ID "$Id$" -#include "../common/compat.h" +#include "compat.h" #ifdef HAVE_SYSLOG_H #include <syslog.h> diff --git a/src/common/test.h b/src/common/test.h index 6919376d26..b6b10d4c22 100644 --- a/src/common/test.h +++ b/src/common/test.h @@ -12,8 +12,6 @@ * \brief Macros used by unit tests. */ -#include <string.h> -#include <stdio.h> #include "compat.h" #ifdef __GNUC__ diff --git a/src/common/tortls.h b/src/common/tortls.h index 00a57dfaec..7d69f8e6c4 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -12,8 +12,8 @@ * \brief Headers for tortls.c **/ -#include "../common/crypto.h" -#include "../common/compat.h" +#include "crypto.h" +#include "compat.h" /* Opaque structure to hold a TLS connection. */ typedef struct tor_tls_t tor_tls_t; diff --git a/src/common/util.h b/src/common/util.h index 4837c172db..80d4aad743 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -17,12 +17,6 @@ #include "compat.h" #include <stdio.h> #include <stdlib.h> -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#endif -#ifdef HAVE_TIME_H -#include <time.h> -#endif /* Replace assert() with a variant that sends failures to the log before * calling assert() normally. diff --git a/src/or/Makefile.am b/src/or/Makefile.am index fd86aa21eb..fea5fcfea8 100644 --- a/src/or/Makefile.am +++ b/src/or/Makefile.am @@ -1,3 +1,5 @@ +CPPFLAGS += -I../common + TESTS = test noinst_PROGRAMS = test @@ -40,7 +42,7 @@ noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i tor_main.o: micro-revision.i -micro-revision.i: FORCE +micro-revision.i: @svkdir=$$SVKROOT; \ if test "x$$svkdir" = x ; then \ svkdir=$$HOME/.svk; \ diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 5c48c6159a..f199af2062 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -12,8 +12,7 @@ const char circuitlist_c_id[] = **/ #include "or.h" - -#include "../common/ht.h" +#include "ht.h" /********* START VARIABLES **********/ diff --git a/src/or/config.c b/src/or/config.c index 732bb0d784..e1260e96a2 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -17,7 +17,6 @@ const char config_c_id[] = \ #ifdef MS_WINDOWS #include <shlobj.h> #endif -#include "../common/aes.h" /** Enumeration of types which option values can take */ typedef enum config_type_t { @@ -4556,8 +4555,9 @@ getinfo_helper_config(control_connection_t *conn, return 0; } -#include "../common/ht.h" -#include "../common/test.h" +#include "aes.h" +#include "ht.h" +#include "test.h" extern const char aes_c_id[]; extern const char compat_c_id[]; diff --git a/src/or/dns.c b/src/or/dns.c index 2a8048a340..b03cbb5aad 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -14,7 +14,7 @@ const char dns_c_id[] = **/ #include "or.h" -#include "../common/ht.h" +#include "ht.h" #include "eventdns.h" /** Longest hostname we're willing to resolve. */ diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 2ecdfc0d09..1fb458118e 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -123,8 +123,8 @@ typedef int socklen_t; #endif /* XXXX020 These are for debugging possible memory leaks. */ -#include "../common/util.h" -#include "../common/compat.h" +#include "util.h" +#include "compat.h" #define malloc(x) tor_malloc(x) #define realloc(x,y) tor_realloc((x),(y)) #define free(x) tor_free(x) diff --git a/src/or/eventdns_tor.h b/src/or/eventdns_tor.h index d1acfe275e..03807065fc 100644 --- a/src/or/eventdns_tor.h +++ b/src/or/eventdns_tor.h @@ -10,7 +10,7 @@ typedef unsigned char u_char; #ifdef MS_WINDOWS #define inline __inline #endif -#include "../common/torint.h" +#include "torint.h" #if defined(MS_WINDOWS) && !defined(WIN32) /* How did _this_ happen? */ diff --git a/src/or/or.h b/src/or/or.h index 3bad879491..5d41658d6d 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -20,27 +20,27 @@ #define WIN32_LEAN_AND_MEAN #endif -#include <stdio.h> -#include <stdlib.h> +// #include <stdio.h> +// #include <stdlib.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#ifdef HAVE_STRING_H -#include <string.h> -#endif +//#ifdef HAVE_STRING_H +//#include <string.h> +//#endif #ifdef HAVE_SIGNAL_H #include <signal.h> #endif #ifdef HAVE_NETDB_H #include <netdb.h> #endif -#ifdef HAVE_CTYPE_H -#include <ctype.h> -#endif +//#ifdef HAVE_CTYPE_H +//#include <ctype.h> +//#endif #ifdef HAVE_SYS_PARAM_H #include <sys/param.h> /* FreeBSD needs this to know what version it is */ #endif -#include "../common/torint.h" +#include "torint.h" #ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> #endif @@ -53,21 +53,21 @@ #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif -#ifdef HAVE_SYS_SOCKET_H -#include <sys/socket.h> -#endif +//#ifdef HAVE_SYS_SOCKET_H +//#include <sys/socket.h> +//#endif #ifdef HAVE_SYS_UN_H #include <sys/un.h> #endif -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#endif +//#ifdef HAVE_SYS_TIME_H +//#include <sys/time.h> +//#endif #ifdef HAVE_SYS_STAT_H #include <sys/stat.h> #endif -#ifdef HAVE_NETINET_IN_H -#include <netinet/in.h> -#endif +//#ifdef HAVE_NETINET_IN_H +//#include <netinet/in.h> +//#endif #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif @@ -91,6 +91,7 @@ #define MAXCONNECTIONS 15000 #endif +#if 0 #ifdef MS_WINDOWS /* No, we don't need to redefine FD_SETSIZE before including winsock: * we use libevent now, and libevent handles the select() stuff. Yes, @@ -107,6 +108,7 @@ #include <ws2tcpip.h> #endif #endif +#endif #ifdef MS_WINDOWS #include <io.h> @@ -118,13 +120,13 @@ #include <event.h> -#include "../common/crypto.h" -#include "../common/tortls.h" -#include "../common/log.h" -#include "../common/compat.h" -#include "../common/container.h" -#include "../common/util.h" -#include "../common/torgzip.h" +#include "crypto.h" +#include "tortls.h" +#include "log.h" +#include "compat.h" +#include "container.h" +#include "util.h" +#include "torgzip.h" /* These signals are defined to help control_signal_act work. */ diff --git a/src/or/relay.c b/src/or/relay.c index 364b976b5c..68b8a5f82d 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -13,7 +13,7 @@ const char relay_c_id[] = **/ #include "or.h" -#include "../common/mempool.h" +#include "mempool.h" static int relay_crypt(circuit_t *circ, cell_t *cell, int cell_direction, crypt_path_t **layer_hint, char *recognized); diff --git a/src/or/test.c b/src/or/test.c index e678d0f7b6..e082bbfa9c 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -36,9 +36,9 @@ const char tor_svn_revision[] = ""; #define ROUTER_PRIVATE #include "or.h" -#include "../common/test.h" -#include "../common/torgzip.h" -#include "../common/mempool.h" +#include "test.h" +#include "torgzip.h" +#include "mempool.h" int have_failed = 0; diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am index 7d7f2c7b8f..8861ec84af 100644 --- a/src/tools/Makefile.am +++ b/src/tools/Makefile.am @@ -1,3 +1,5 @@ +CPPFLAGS += -I../common + bin_PROGRAMS = tor-resolve tor-gencert tor_resolve_SOURCES = tor-resolve.c diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c index 1dd9c9e59b..abb2ac298a 100644 --- a/src/tools/tor-gencert.c +++ b/src/tools/tor-gencert.c @@ -27,10 +27,10 @@ #define CRYPTO_PRIVATE -#include "../common/compat.h" -#include "../common/util.h" -#include "../common/log.h" -#include "../common/crypto.h" +#include "compat.h" +#include "util.h" +#include "log.h" +#include "crypto.h" #define IDENTITY_KEY_BITS 3072 #define SIGNING_KEY_BITS 1024 diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index c23a463ed7..e6561443bf 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -4,9 +4,9 @@ #include "orconfig.h" -#include "../common/compat.h" -#include "../common/util.h" -#include "../common/log.h" +#include "compat.h" +#include "util.h" +#include "log.h" #include <stdio.h> #include <stdlib.h> |