author | simon <simon> | 2002-04-30 06:23:23 (UTC) |
---|---|---|
committer | simon <simon> | 2002-04-30 06:23:23 (UTC) |
commit | 702c4b745d42d9ad5fdcede0a40d85ea1b0577a6 (patch) (unidiff) | |
tree | fbe3d9080bd8e8c851464bf2b3e2c5c3c2383c97 | |
parent | 06be684b1ad4f17fdb5e9ea55560c1d6e4b4bf7d (diff) | |
download | opie-702c4b745d42d9ad5fdcede0a40d85ea1b0577a6.zip opie-702c4b745d42d9ad5fdcede0a40d85ea1b0577a6.tar.gz opie-702c4b745d42d9ad5fdcede0a40d85ea1b0577a6.tar.bz2 |
- read(2) and write(2) are not part of the std namespace
-rw-r--r-- | core/multimedia/opieplayer/libmad/libmadplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/multimedia/opieplayer/libmad/libmadplugin.cpp b/core/multimedia/opieplayer/libmad/libmadplugin.cpp index 319e0ff..eda5859 100644 --- a/core/multimedia/opieplayer/libmad/libmadplugin.cpp +++ b/core/multimedia/opieplayer/libmad/libmadplugin.cpp | |||
@@ -293,7 +293,7 @@ int LibMadPlugin::http_read_line(int tcp_sock, char *buf, int size) { | |||
293 | int offset = 0; | 293 | int offset = 0; |
294 | 294 | ||
295 | do { | 295 | do { |
296 | if (std::read(tcp_sock, buf + offset, 1) < 0) | 296 | if (::read(tcp_sock, buf + offset, 1) < 0) |
297 | return -1; | 297 | return -1; |
298 | if (buf[offset] != '\r') /* Strip \r from answer */ | 298 | if (buf[offset] != '\r') /* Strip \r from answer */ |
299 | offset++; | 299 | offset++; |
@@ -385,7 +385,7 @@ int LibMadPlugin::http_open(const QString& path ) { | |||
385 | 385 | ||
386 | if (QString(http_request).left(9) == "Location:") { | 386 | if (QString(http_request).left(9) == "Location:") { |
387 | /* redirect */ | 387 | /* redirect */ |
388 | std::close(tcp_sock); | 388 | ::close(tcp_sock); |
389 | http_request[strlen(http_request) - 1] = '\0'; | 389 | http_request[strlen(http_request) - 1] = '\0'; |
390 | return http_open(&http_request[10]); | 390 | return http_open(&http_request[10]); |
391 | } | 391 | } |