diff options
author | pav <pav@FreeBSD.org> | 2010-08-26 16:56:21 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2010-08-26 16:56:21 +0800 |
commit | 189559ab81760c2871e69b613aea2e59c4cda726 (patch) | |
tree | be52406b01ad46369d593d389ce3016985de3a37 | |
parent | a1ba066e13a4fbc08767be0d14645dbffe9cc7ba (diff) | |
download | freebsd-ports-gnome-189559ab81760c2871e69b613aea2e59c4cda726.tar.gz freebsd-ports-gnome-189559ab81760c2871e69b613aea2e59c4cda726.tar.zst freebsd-ports-gnome-189559ab81760c2871e69b613aea2e59c4cda726.zip |
- Fix runtime on amd64
PR: ports/149954
Submitted by: Yuri <yuri@tsoft.com>
-rw-r--r-- | x11/xmx/Makefile | 2 | ||||
-rw-r--r-- | x11/xmx/files/patch-fix-amd64 | 50 |
2 files changed, 51 insertions, 1 deletions
diff --git a/x11/xmx/Makefile b/x11/xmx/Makefile index 72d8853c2b36..bcdc65a59f9e 100644 --- a/x11/xmx/Makefile +++ b/x11/xmx/Makefile @@ -7,7 +7,7 @@ PORTNAME= xmx PORTVERSION= 1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11 MASTER_SITES= ftp://ftp.cs.brown.edu/pub/xmx/ EXTRACT_SUFX= .tar.Z diff --git a/x11/xmx/files/patch-fix-amd64 b/x11/xmx/files/patch-fix-amd64 new file mode 100644 index 000000000000..9afd931827b4 --- /dev/null +++ b/x11/xmx/files/patch-fix-amd64 @@ -0,0 +1,50 @@ +diff -ru bufio.c.orig bufio.c +--- bufio.c.orig 1994-04-13 09:22:21.000000000 -0700 ++++ bufio.c 2010-08-24 21:45:48.000000000 -0700 +@@ -35,9 +35,6 @@ + static void adjust(); + static void trim_high_water(); + +-extern char * malloc(); +-extern char * calloc(); +- + /************************************************************************ + * * + * local constants * +diff -ru error.c.orig error.c +--- error.c.orig 1994-04-13 09:22:22.000000000 -0700 ++++ error.c 2010-08-24 21:46:53.000000000 -0700 +@@ -16,6 +16,7 @@ + * * + ************************************************************************/ + #include <stdio.h> ++#include "xmx.h" + + static int print = 1; + +diff -ru xmx.h.orig xmx.h +--- xmx.h.orig 1994-04-13 09:22:24.000000000 -0700 ++++ xmx.h 2010-08-24 21:46:14.000000000 -0700 +@@ -38,6 +38,11 @@ + + #define REQHISTORY 64 /* size of per client history */ + ++#include <stdlib.h> ++#include <stdio.h> ++#include <string.h> ++#include <strings.h> ++ + typedef unsigned long rid_t; + typedef unsigned long atom_t; + typedef unsigned long pixel_t; +@@ -104,10 +109,6 @@ + * * + ************************************************************************/ + +-/* system */ +-char * malloc(); +-char * calloc(); +- + /* bufio.c */ + + void buf_init(); |