[or-cvs] r16723: {tor} remove some redundant includes. i expect the first one to be (tor/trunk/src/common)

arma at seul.org arma at seul.org
Mon Sep 1 21:16:07 UTC 2008


Author: arma
Date: 2008-09-01 17:16:07 -0400 (Mon, 01 Sep 2008)
New Revision: 16723

Modified:
   tor/trunk/src/common/compat.c
Log:
remove some redundant includes. i expect the first one to be a problem
for tas, but who knows.


Modified: tor/trunk/src/common/compat.c
===================================================================
--- tor/trunk/src/common/compat.c	2008-09-01 20:06:26 UTC (rev 16722)
+++ tor/trunk/src/common/compat.c	2008-09-01 21:16:07 UTC (rev 16723)
@@ -20,7 +20,6 @@
  */
 #define _GNU_SOURCE
 
-#include "orconfig.h"
 #include "compat.h"
 
 #ifdef MS_WINDOWS
@@ -32,9 +31,6 @@
 #ifdef HAVE_UNAME
 #include <sys/utsname.h>
 #endif
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -50,40 +46,28 @@
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
-#ifdef HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
-#endif
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
+
 #ifndef HAVE_GETTIMEOFDAY
 #ifdef HAVE_FTIME
 #include <sys/timeb.h>
 #endif
 #endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
+
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h> /* FreeBSD needs this to know what version it is */
 #endif
-#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <assert.h>
-#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
-#endif
 #ifdef HAVE_SIGNAL_H
 #include <signal.h>
 #endif



More information about the tor-commits mailing list