Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 326926 Details for
Bug 423997
media-sound/logitechmediaserver-bin does not support perl 5.16
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
small patch to allow http://code.google.com/p/squeezed/ to be compiled (but I can't get it to work).
gentoo.diff (text/plain), 1.80 KB, created by
Grégoire Favre
on 2012-10-19 11:38:10 UTC
(
hide
)
Description:
small patch to allow http://code.google.com/p/squeezed/ to be compiled (but I can't get it to work).
Filename:
MIME Type:
Creator:
Grégoire Favre
Created:
2012-10-19 11:38:10 UTC
Size:
1.80 KB
patch
obsolete
>Index: socket.cpp >=================================================================== >--- socket.cpp (revision 28) >+++ socket.cpp (working copy) >@@ -1,5 +1,7 @@ >+#include <fcntl.h> >+#include <sys/ioctl.h> >+#include <stdio.h> > >- > #ifdef WIN32 > #include <Winsock2.h> > typedef SOCKET SOCKET_T; >@@ -152,14 +154,23 @@ > > void Socket::setBlocking(bool doBlock) > { >+ int flags; >+ int r; >+ >+ flags = fcntl (_sock->s, F_GETFL); >+ > if( doBlock ) > { > u_long iMode = 0; // blocking >- int r = ioctlsocket(_sock->s, FIONBIO, &iMode); >+ //int r = ioctlsocket(_sock->s, FIONBIO, &iMode); >+ //int r = fcntl(_sock->s, F_SETFL, &iMode) ; >+ r = fcntl (_sock->s, F_SETFL, flags & ~O_NONBLOCK); > } else { > //set client to non-blocking mode: (is server is non-blocking, so will the clients be) > u_long iMode = 1; // non-blocking >- int r = ioctlsocket(_sock->s, FIONBIO, &iMode); >+ //int r = ioctlsocket(_sock->s, FIONBIO, &iMode); >+ //int r = fcntl(_sock->s, F_SETFL, &iMode) ; >+ r = fcntl (_sock->s, F_SETFL, flags | O_NONBLOCK); > } > //return r==0; //return True if no error. > } >Index: taglib/taglib/taglib_export.h >=================================================================== >--- taglib/taglib/taglib_export.h (revision 28) >+++ taglib/taglib/taglib_export.h (working copy) >@@ -26,17 +26,14 @@ > #ifndef TAGLIB_EXPORT_H > #define TAGLIB_EXPORT_H > >- >-/* >-#if (defined(_WIN32) || defined(_WIN64)) && (!defined(MAKE_TAGLIB_STATIC)) >- #ifdef MAKE_TAGLIB_LIB >- #define TAGLIB_EXPORT __declspec(dllexport) >- #else >- #define TAGLIB_EXPORT __declspec(dllimport) >- #endif >+#if defined(_WIN32) || defined(_WIN64) >+#ifdef MAKE_TAGLIB_LIB >+#define TAGLIB_EXPORT __declspec(dllexport) > #else >-*/ >- #define TAGLIB_EXPORT >-//#endif >+#define TAGLIB_EXPORT __declspec(dllimport) >+#endif >+#else >+#define TAGLIB_EXPORT >+#endif > > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 423997
: 326926