pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41532: net/rtorrent fails to compile on solaris 10



>Number:         41532
>Category:       pkg
>Synopsis:       net/rtorrent fails to compile on solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 03 12:50:00 +0000 2009
>Originator:     Mikko Kortelainen
>Release:        none
>Organization:
home
>Environment:
SunOS flexnet 5.10 Generic sun4u sparc SUNW,Netra-T4

>Description:
net/rtorrent fails to compile on solaris: AF_LOCAL undeclared.
>How-To-Repeat:
try to build net/rtorrent on solaris10
>Fix:
--- /export/home/kordex/rtorrent-0.8.2/src/rpc/scgi.cc  2008-05-07 
15:19:10.000000000 +0300
+++ scgi.cc     2009-04-03 13:50:34.413629000 +0300
@@ -88,7 +88,12 @@
   char buffer[sizeof(sockaddr_un) + filename.size()];
   sockaddr_un* sa = reinterpret_cast<sockaddr_un*>(buffer);
 
+#if defined(sun) || defined(__sun) 
+  sa->sun_family = AF_UNIX;
+#else
   sa->sun_family = AF_LOCAL;
+#endif
+
   std::memcpy(sa->sun_path, filename.c_str(), filename.size() + 1);
 
   if (!get_fd().open_local())



Home | Main Index | Thread Index | Old Index