summaryrefslogtreecommitdiff
path: root/audio/bmpx/patches/patch-ab
blob: db35fc4178719f1b0ddcad9c3032c19f525a2421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.6 2008/10/28 22:23:40 wiz Exp $

--- jnetlib/connection.cpp.orig	2008-03-05 21:31:04.000000000 +0000
+++ jnetlib/connection.cpp
@@ -224,8 +224,17 @@ void JNL_Connection::run(int max_send_by
    
         if (select_retval == -1)
 #else
+#ifdef __DragonFly__
+	sigset_t cur_set;
+	sigprocmask(SIG_SETMASK, &sigs, &cur_set);
+	int select_retval = select(m_socket+1,&f[0],&f[1],&f[2],NULL);
+	sigprocmask(SIG_SETMASK, &cur_set, NULL);
+	
+	if (select_retval == -1)
+#else
         if (pselect(m_socket+1,&f[0],&f[1],&f[2],&ts,&sigs)==-1)
 #endif
+#endif
         {
           m_errorstr="connecting to host (calling select())";
           m_state=STATE_ERROR;