diff options
author | joerg <joerg> | 2007-08-30 15:30:30 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-08-30 15:30:30 +0000 |
commit | 29c8107d9394e45268a2612dca72053165c4a65c (patch) | |
tree | 19aaa82ff60d9ae0f463e819f095c207c2a8169b /audio/bmpx/patches | |
parent | b1f16e89c52469aeb736535a58543d0b1e6aa429 (diff) | |
download | pkgsrc-29c8107d9394e45268a2612dca72053165c4a65c.tar.gz |
Fix various portability glitches.
Diffstat (limited to 'audio/bmpx/patches')
-rw-r--r-- | audio/bmpx/patches/patch-ab | 31 | ||||
-rw-r--r-- | audio/bmpx/patches/patch-ac | 67 | ||||
-rw-r--r-- | audio/bmpx/patches/patch-ad | 13 | ||||
-rw-r--r-- | audio/bmpx/patches/patch-ae | 13 |
4 files changed, 124 insertions, 0 deletions
diff --git a/audio/bmpx/patches/patch-ab b/audio/bmpx/patches/patch-ab new file mode 100644 index 00000000000..ae902ee963d --- /dev/null +++ b/audio/bmpx/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.3 2007/08/30 15:30:31 joerg Exp $ + +--- jnetlib/connection.cpp.orig 2007-08-30 13:39:23.000000000 +0000 ++++ jnetlib/connection.cpp +@@ -205,8 +205,6 @@ void JNL_Connection::run(int max_send_by + FD_SET(m_socket,&f[1]); + FD_SET(m_socket,&f[2]); + +- struct timespec ts; +- memset(&ts,0,sizeof(ts)); + sigset_t sigs; + sigfillset (&sigs); + sigdelset (&sigs, SIGBUS); +@@ -215,7 +213,16 @@ void JNL_Connection::run(int max_send_by + sigdelset (&sigs, SIGSEGV); + sigdelset (&sigs, SIGKILL); + sigdelset (&sigs, SIGSTOP); +- if (pselect(m_socket+1,&f[0],&f[1],&f[2],&ts,&sigs)==-1) ++#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],NULL,&sigs)==-1) ++#endif + { + m_errorstr="connecting to host (calling select())"; + m_state=STATE_ERROR; diff --git a/audio/bmpx/patches/patch-ac b/audio/bmpx/patches/patch-ac new file mode 100644 index 00000000000..7e1447daa91 --- /dev/null +++ b/audio/bmpx/patches/patch-ac @@ -0,0 +1,67 @@ +$NetBSD: patch-ac,v 1.3 2007/08/30 15:30:31 joerg Exp $ + +--- src/audio/audio.hh.orig 2007-08-11 18:41:50.000000000 +0000 ++++ src/audio/audio.hh +@@ -125,7 +125,30 @@ namespace Bmp + */ + struct Element + { +- class Attr; ++ /** An attribute holds a @link Bmp::Audio::Element::Attr::Value@endlink, ++ * and a name (std::string) ++ */ ++ struct Attr ++ { ++ /** boost::variant type for bool, int, double and string values ++ */ ++ typedef boost::variant<bool, int, double, std::string> Value; ++ ++ std::string name; ++ Value value; ++ ++ /** Default ctor ++ */ ++ Attr () {} ++ ++ /** Ctor taking the value, type and the name ++ */ ++ Attr (std::string const& name, ++ Value const& value) ++ : name (name) ++ , value (value) ++ {} ++ }; + + /** std::vector typedef of an Attr + */ +@@ -164,30 +187,6 @@ namespace Bmp + } + }; + +- /** An attribute holds a @link Bmp::Audio::Element::Attr::Value@endlink, +- * and a name (std::string) +- */ +- struct Element::Attr +- { +- /** boost::variant type for bool, int, double and string values +- */ +- typedef boost::variant<bool, int, double, std::string> Value; +- +- std::string name; +- Value value; +- +- /** Default ctor +- */ +- Attr () {} +- +- /** Ctor taking the value, type and the name +- */ +- Attr (std::string const& name, +- Value const& value) +- : name (name) +- , value (value) +- {} +- }; + + /** Current state of the audio processing unit + */ diff --git a/audio/bmpx/patches/patch-ad b/audio/bmpx/patches/patch-ad new file mode 100644 index 00000000000..981ace45102 --- /dev/null +++ b/audio/bmpx/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.3 2007/08/30 15:30:31 joerg Exp $ + +--- src/network.cc.orig 2007-08-30 14:13:19.000000000 +0000 ++++ src/network.cc +@@ -166,7 +166,7 @@ namespace Bmp + FD_SET (rc, &rfds); + + tv.tv_sec = time_t (timeout); +- tv.tv_usec = suseconds_t ((timeout - tv.tv_sec) * 1000000); ++ tv.tv_usec = (long)((timeout - tv.tv_sec) * 1000000); + + if (write) + retval = select (rc+1, &rfds, NULL, NULL, &tv); diff --git a/audio/bmpx/patches/patch-ae b/audio/bmpx/patches/patch-ae new file mode 100644 index 00000000000..3db5abed779 --- /dev/null +++ b/audio/bmpx/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1 2007/08/30 15:30:32 joerg Exp $ + +--- jnetlib/asyncdns.h.orig 2007-08-30 14:37:50.000000000 +0000 ++++ jnetlib/asyncdns.h +@@ -18,6 +18,8 @@ + #ifndef _ASYNCDNS_H_ + #define _ASYNCDNS_H_ + ++#include <pthread.h> ++ + class JNL_AsyncDNS + { + public: |