aboutsummaryrefslogtreecommitdiffstats
path: root/devel/mq4cpp/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/mq4cpp/files')
-rw-r--r--devel/mq4cpp/files/patch-Makefile.in11
-rw-r--r--devel/mq4cpp/files/patch-include_MessageProxy.h11
-rw-r--r--devel/mq4cpp/files/patch-include_Socket.h10
-rw-r--r--devel/mq4cpp/files/patch-include_Thread.h11
-rw-r--r--devel/mq4cpp/files/patch-include_rijndael.h17
-rw-r--r--devel/mq4cpp/files/patch-src_FileSystem.cpp37
-rw-r--r--devel/mq4cpp/files/patch-src_Thread.cpp11
7 files changed, 108 insertions, 0 deletions
diff --git a/devel/mq4cpp/files/patch-Makefile.in b/devel/mq4cpp/files/patch-Makefile.in
new file mode 100644
index 000000000000..0713fbf938b0
--- /dev/null
+++ b/devel/mq4cpp/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Thu Jan 4 15:55:59 2007
++++ Makefile.in Thu Jan 4 15:56:07 2007
+@@ -213,7 +213,7 @@
+ pkgconfigdir = $(prefix)/libdata/pkgconfig
+ pkgconfig_DATA = $(GENERIC_LIBRARY_NAME).pc
+ doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README LICENSE TODO
+-docdir = $(datadir)/doc
++docdir = $(datadir)/doc/mq4cpp
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
diff --git a/devel/mq4cpp/files/patch-include_MessageProxy.h b/devel/mq4cpp/files/patch-include_MessageProxy.h
new file mode 100644
index 000000000000..c24c871b4a7b
--- /dev/null
+++ b/devel/mq4cpp/files/patch-include_MessageProxy.h
@@ -0,0 +1,11 @@
+--- include/MessageProxy.h.orig Thu Jan 4 12:28:14 2007
++++ include/MessageProxy.h Thu Jan 4 12:28:19 2007
+@@ -32,7 +32,7 @@
+ #include <windows.h>
+ #else
+ #include <pthread.h>
+-#include <asm/errno.h>
++#include <sys/errno.h>
+ #endif
+
+ #include <vector>
diff --git a/devel/mq4cpp/files/patch-include_Socket.h b/devel/mq4cpp/files/patch-include_Socket.h
new file mode 100644
index 000000000000..18a6939b4cf4
--- /dev/null
+++ b/devel/mq4cpp/files/patch-include_Socket.h
@@ -0,0 +1,10 @@
+--- include/Socket.h.orig Mon Dec 18 02:57:52 2006
++++ include/Socket.h Thu Jan 4 12:26:33 2007
+@@ -29,6 +29,7 @@
+ #include <WinSock2.h>
+ #else
+ #include <netinet/in.h>
++#include <sys/socket.h>
+ typedef int SOCKET;
+ #endif
+
diff --git a/devel/mq4cpp/files/patch-include_Thread.h b/devel/mq4cpp/files/patch-include_Thread.h
new file mode 100644
index 000000000000..16d2890104ae
--- /dev/null
+++ b/devel/mq4cpp/files/patch-include_Thread.h
@@ -0,0 +1,11 @@
+--- include/Thread.h.orig Mon Dec 18 02:57:52 2006
++++ include/Thread.h Thu Jan 4 12:26:18 2007
+@@ -27,7 +27,7 @@
+ #include <windows.h>
+ #else
+ #include <pthread.h>
+-#include <asm/errno.h>
++#include <sys/errno.h>
+ #endif
+
+ class ThreadException : public Exception
diff --git a/devel/mq4cpp/files/patch-include_rijndael.h b/devel/mq4cpp/files/patch-include_rijndael.h
new file mode 100644
index 000000000000..6356ba19e8be
--- /dev/null
+++ b/devel/mq4cpp/files/patch-include_rijndael.h
@@ -0,0 +1,17 @@
+--- include/rijndael.h.orig Thu Jan 4 12:26:53 2007
++++ include/rijndael.h Thu Jan 4 12:27:11 2007
+@@ -23,11 +23,11 @@
+ typedef unsigned short word16;
+ typedef unsigned char byte;
+ #else
+-#include <asm/types.h>
++#include <sys/types.h>
+ #include <stdlib.h>
+ #include <string.h>
+-typedef __u32 word32;
+-typedef __s32 sword32;
++typedef uint32_t word32;
++typedef int32_t sword32;
+ typedef unsigned short word16;
+ typedef unsigned char byte;
+ #endif
diff --git a/devel/mq4cpp/files/patch-src_FileSystem.cpp b/devel/mq4cpp/files/patch-src_FileSystem.cpp
new file mode 100644
index 000000000000..9d592d6d9549
--- /dev/null
+++ b/devel/mq4cpp/files/patch-src_FileSystem.cpp
@@ -0,0 +1,37 @@
+--- src/FileSystem.cpp.orig Wed Jan 3 21:57:08 2007
++++ src/FileSystem.cpp Thu Jan 4 16:43:02 2007
+@@ -28,7 +28,9 @@
+ #ifndef WIN32
+ #include <stdlib.h>
+ #include <stdio.h>
+-#include <sys/sendfile.h>
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <sys/uio.h>
+ #include <fcntl.h>
+ #include <regex.h>
+ #include <errno.h>
+@@ -258,7 +260,11 @@
+ int out_fd = ::open(theDestFullName, O_WRONLY|O_CREAT|O_TRUNC, statbuf.st_mode);
+ if(out_fd<0)
+ throw FileSystemException();
++#ifdef __FreeBSD__
++ sendfile(in_fd, out_fd, 0, statbuf.st_size, NULL, NULL, 0);
++#else
+ sendfile(out_fd, in_fd, 0, statbuf.st_size);
++#endif
+ ::close(out_fd);
+ ::close(in_fd);
+ #endif
+@@ -321,7 +327,11 @@
+ Directory* ret=new Directory(path);
+ ret->search();
+ #else
++#ifdef __FreeBSD__
++ char* ptr = getcwd (NULL, PATH_MAX);
++#else
+ char* ptr=get_current_dir_name();
++#endif
+ TRACE("Current directory=" << ptr)
+ Directory* ret=new Directory(ptr);
+ ret->search();
diff --git a/devel/mq4cpp/files/patch-src_Thread.cpp b/devel/mq4cpp/files/patch-src_Thread.cpp
new file mode 100644
index 000000000000..3c845af68499
--- /dev/null
+++ b/devel/mq4cpp/files/patch-src_Thread.cpp
@@ -0,0 +1,11 @@
+--- src/Thread.cpp.orig Thu Jan 4 12:31:04 2007
++++ src/Thread.cpp Thu Jan 4 12:31:22 2007
+@@ -76,7 +76,7 @@
+ #ifdef WIN32
+ return GetCurrentThreadId();
+ #else
+- return pthread_self();
++ return (unsigned long)pthread_self();
+ #endif
+ }
+