summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-06-13 20:19:29 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-06-13 20:19:29 +0000
commitc4ef975e4574704774ef32f363cec3d8b8ed4b3b (patch)
tree4ff5a45c94b73308da0e959729d6e5511e540518
parent980793f7b028ce73c0e53d652475011dc689fc39 (diff)
downloadqpid-python-c4ef975e4574704774ef32f363cec3d8b8ed4b3b.tar.gz
NO-JIRA: Remove unnecessary includes for AsynchIO
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1492847 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/sys/AsynchIO.h4
-rw-r--r--cpp/src/qpid/sys/posix/AsynchIO.cpp12
2 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/qpid/sys/AsynchIO.h b/cpp/src/qpid/sys/AsynchIO.h
index 679665f8ad..0a2d85ea14 100644
--- a/cpp/src/qpid/sys/AsynchIO.h
+++ b/cpp/src/qpid/sys/AsynchIO.h
@@ -24,7 +24,6 @@
#include "qpid/CommonImportExport.h"
#include "qpid/sys/IntegerTypes.h"
-#include "qpid/sys/SecuritySettings.h"
#include <string.h>
@@ -33,7 +32,8 @@
namespace qpid {
namespace sys {
-
+
+class SecuritySettings;
class Socket;
class Poller;
diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp
index 353a55f50c..c609e1ed31 100644
--- a/cpp/src/qpid/sys/posix/AsynchIO.cpp
+++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp
@@ -20,6 +20,7 @@
*/
#include "qpid/sys/AsynchIO.h"
+#include "qpid/sys/SecuritySettings.h"
#include "qpid/sys/Socket.h"
#include "qpid/sys/SocketAddress.h"
#include "qpid/sys/Poller.h"
@@ -28,15 +29,14 @@
#include "qpid/sys/Time.h"
#include "qpid/log/Statement.h"
-#include "qpid/sys/posix/check.h"
-
// TODO The basic algorithm here is not really POSIX specific and with a
// bit more abstraction could (should) be promoted to be platform portable
-#include <unistd.h>
-#include <sys/socket.h>
-#include <signal.h>
+// - The POSIX specific code here is ignoring SIGPIPE which should really
+// be part of the socket code.
+// - And checking errno to detect specific read/write conditions.
+//
#include <errno.h>
-#include <string.h>
+#include <signal.h>
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>