diff options
| author | David 'Digit' Turner <digit@google.com> | 2014-02-27 14:21:58 +0100 |
|---|---|---|
| committer | David 'Digit' Turner <digit@google.com> | 2014-03-11 18:03:07 +0100 |
| commit | bfc6160fecf9af96c659ab2474098275af9f042c (patch) | |
| tree | 7abed68aa6705d49d399b24d5f30a1e19ef14167 /emulator/opengl/shared/OpenglCodecCommon/SocketStream.cpp | |
| parent | 47752bc9b62d974d82ba10bfc3633b72d10afcbd (diff) | |
| download | sdk-bfc6160fecf9af96c659ab2474098275af9f042c.tar.gz sdk-bfc6160fecf9af96c659ab2474098275af9f042c.tar.bz2 sdk-bfc6160fecf9af96c659ab2474098275af9f042c.zip | |
emulator/opengl: Remove <cutils/sockets.h>
Remove the dependency on <cutils/sockets.h> by providing
"emugl/common/sockets.h" instead, which contains similar
utility wrappers.
Change-Id: Ifd48abeb208b004c801c9447a4141881f6fa8f44
Diffstat (limited to 'emulator/opengl/shared/OpenglCodecCommon/SocketStream.cpp')
| -rw-r--r-- | emulator/opengl/shared/OpenglCodecCommon/SocketStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/opengl/shared/OpenglCodecCommon/SocketStream.cpp b/emulator/opengl/shared/OpenglCodecCommon/SocketStream.cpp index f7a2314f9..3ef4c6f1d 100644 --- a/emulator/opengl/shared/OpenglCodecCommon/SocketStream.cpp +++ b/emulator/opengl/shared/OpenglCodecCommon/SocketStream.cpp @@ -14,7 +14,6 @@ * limitations under the License. */ #include "SocketStream.h" -#include <cutils/sockets.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> @@ -53,6 +52,7 @@ SocketStream::~SocketStream() #else ::close(m_sock); #endif + m_sock = -1; } if (m_buf != NULL) { free(m_buf); @@ -140,7 +140,7 @@ const unsigned char *SocketStream::read( void *buf, size_t *inout_len) int n; do { - n = recv(buf, *inout_len); + n = this->recv(buf, *inout_len); } while( n < 0 && errno == EINTR ); if (n > 0) { |
