You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2013/07/09 18:37:40 UTC

[2/5] git commit: TS-2010: remove nonsense explicit includes

TS-2010: remove nonsense explicit includes

Explicitly including files from /usr/include is nonsense and breaks
with Xcode 5.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f657073a
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f657073a
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f657073a

Branch: refs/heads/master
Commit: f657073a430774eb72621b798fc3c39541637a82
Parents: e8bdb2b
Author: James Peach <jp...@apache.org>
Authored: Tue Jul 9 10:10:21 2013 -0600
Committer: James Peach <jp...@apache.org>
Committed: Tue Jul 9 10:36:08 2013 -0600

----------------------------------------------------------------------
 lib/ts/ink_inout.h        | 2 +-
 proxy/logging/LogUtils.cc | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f657073a/lib/ts/ink_inout.h
----------------------------------------------------------------------
diff --git a/lib/ts/ink_inout.h b/lib/ts/ink_inout.h
index adc4041..fd6e701 100644
--- a/lib/ts/ink_inout.h
+++ b/lib/ts/ink_inout.h
@@ -33,7 +33,7 @@
 #ifdef __cplusplus
 extern "C" {
 #endif                          /* __cplusplus */
-#include "/usr/include/arpa/nameser.h"
+#include <arpa/nameser.h>
 #ifdef __cplusplus
 }
 #endif                          /* __cplusplus */

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f657073a/proxy/logging/LogUtils.cc
----------------------------------------------------------------------
diff --git a/proxy/logging/LogUtils.cc b/proxy/logging/LogUtils.cc
index ef5f70b..bbecf01 100644
--- a/proxy/logging/LogUtils.cc
+++ b/proxy/logging/LogUtils.cc
@@ -37,13 +37,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#if defined(solaris)
 #include <netdb.h>
-#else
-// XXX: This is just nonsense!!!
-#include "/usr/include/netdb.h" // need following instead of <netdb.h>
-#endif
-
 
 #include "P_RecProcess.h"
 #define LOG_SignalManager             REC_SignalManager