diff options
Diffstat (limited to 'net/gtk-vnc/files')
-rw-r--r-- | net/gtk-vnc/files/patch-examples_gvncviewer.c | 10 | ||||
-rw-r--r-- | net/gtk-vnc/files/patch-src_continuation.h | 10 | ||||
-rw-r--r-- | net/gtk-vnc/files/patch-src_coroutine.c | 11 | ||||
-rw-r--r-- | net/gtk-vnc/files/patch-src_gvnc.c | 31 |
4 files changed, 62 insertions, 0 deletions
diff --git a/net/gtk-vnc/files/patch-examples_gvncviewer.c b/net/gtk-vnc/files/patch-examples_gvncviewer.c new file mode 100644 index 000000000000..fe0579baffea --- /dev/null +++ b/net/gtk-vnc/files/patch-examples_gvncviewer.c @@ -0,0 +1,10 @@ +--- examples/gvncviewer.c.orig 2007-12-16 14:02:33.000000000 -0500 ++++ examples/gvncviewer.c 2007-12-16 14:02:44.000000000 -0500 +@@ -4,6 +4,7 @@ + #include <stdlib.h> + #include <string.h> + ++#include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <netinet/tcp.h> diff --git a/net/gtk-vnc/files/patch-src_continuation.h b/net/gtk-vnc/files/patch-src_continuation.h new file mode 100644 index 000000000000..549af869b8e7 --- /dev/null +++ b/net/gtk-vnc/files/patch-src_continuation.h @@ -0,0 +1,10 @@ +--- src/continuation.h.orig 2007-12-16 13:58:18.000000000 -0500 ++++ src/continuation.h 2007-12-16 13:58:39.000000000 -0500 +@@ -11,6 +11,7 @@ + #ifndef _CONTINUATION_H_ + #define _CONTINUATION_H_ + ++#include <sys/types.h> + #include <ucontext.h> + + struct continuation diff --git a/net/gtk-vnc/files/patch-src_coroutine.c b/net/gtk-vnc/files/patch-src_coroutine.c new file mode 100644 index 000000000000..1731a83898cb --- /dev/null +++ b/net/gtk-vnc/files/patch-src_coroutine.c @@ -0,0 +1,11 @@ +--- src/coroutine.c.orig 2007-12-16 13:59:13.000000000 -0500 ++++ src/coroutine.c 2007-12-16 13:59:21.000000000 -0500 +@@ -48,7 +48,7 @@ int coroutine_init(struct coroutine *co) + co->cc.stack_size = co->stack_size; + co->cc.stack = mmap(0, co->stack_size, + PROT_READ | PROT_WRITE, +- MAP_PRIVATE | MAP_ANONYMOUS, ++ MAP_PRIVATE | MAP_ANON, + -1, 0); + if (co->cc.stack == MAP_FAILED) + return -1; diff --git a/net/gtk-vnc/files/patch-src_gvnc.c b/net/gtk-vnc/files/patch-src_gvnc.c new file mode 100644 index 000000000000..ac8825af6f67 --- /dev/null +++ b/net/gtk-vnc/files/patch-src_gvnc.c @@ -0,0 +1,31 @@ +--- src/gvnc.c.orig 2007-12-16 13:59:46.000000000 -0500 ++++ src/gvnc.c 2007-12-16 14:01:54.000000000 -0500 +@@ -16,7 +16,7 @@ + + #include <netdb.h> + #include <string.h> +-#include <malloc.h> ++#include <stdlib.h> + #include <unistd.h> + #include <stdio.h> + #include <errno.h> +@@ -26,7 +26,19 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/stat.h> ++#ifdef __FreeBSD__ ++#include <sys/endian.h> ++ ++#define __BYTE_ORDER _BYTE_ORDER ++#define __LITTLE_ENDIAN _LITTLE_ENDIAN ++#define __BIG_ENDIAN _BIG_ENDIAN ++ ++#define bswap_16 bswap16 ++#define bswap_32 bswap32 ++#define bswap_64 bswap64 ++#else + #include <endian.h> ++#endif + + #include "coroutine.h" + #include "d3des.h" |