Link to libnetwork. simpler copat checking. more error repporting.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20241 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
63d6bf7ad8
commit
769d863635
@ -327,6 +327,8 @@ ssize_t ESDEndpoint::Write(const void *buffer, size_t size)
|
||||
err = write(fSocket, buffer, size);
|
||||
if (err != size) {
|
||||
fprintf(stderr, "ESDEndpoint::Write: sent only %d of %d!\n", err, size);
|
||||
if (err < 0)
|
||||
fprintf(stderr, "ESDEndpoint::Write: %s\n", strerror(errno));
|
||||
}
|
||||
//PRINT(("write(fSocket, buffer, %d): %s\n", size, strerror(err)));
|
||||
if (err < B_OK)
|
||||
|
@ -11,7 +11,7 @@ Addon ESDSink.media_addon : media :
|
||||
ESDSinkAddOn.cpp
|
||||
ESDSinkNode.cpp
|
||||
: false
|
||||
: be media
|
||||
: be media network
|
||||
;
|
||||
|
||||
#Package haiku-multi_audio-cvs
|
||||
|
@ -6,21 +6,9 @@
|
||||
#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if IPPROTO_TCP != 6
|
||||
#if defined(__HAIKU__) || defined(BONE_VERSION)
|
||||
# define closesocket close
|
||||
#endif
|
||||
/* net_server */
|
||||
|
||||
#else
|
||||
|
||||
# define closesocket close
|
||||
|
||||
# ifdef BONE_VERSION
|
||||
/* BONE */
|
||||
|
||||
# else
|
||||
/* Haiku ? */
|
||||
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _COMPAT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user