diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2013-06-11 21:19:37 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2013-06-11 21:19:37 +0000 |
commit | 85b61459852672464b58822811c1bfdb8e06e85a (patch) | |
tree | d408c456c70a060456b1d4fd902d722ed6c9bd72 /x11-wm/piewm | |
parent | 74d81c8e2be5a9f51442390fd7bfda9fef845960 (diff) | |
download | ports-85b61459852672464b58822811c1bfdb8e06e85a.tar.gz ports-85b61459852672464b58822811c1bfdb8e06e85a.zip |
Add a patch to stop crashing on amd64.
PR: ports/179179
Submitted by: David Wolfskill <david@catwhisker.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=320644
Diffstat (limited to 'x11-wm/piewm')
-rw-r--r-- | x11-wm/piewm/Makefile | 2 | ||||
-rw-r--r-- | x11-wm/piewm/files/patch-twm.h | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/x11-wm/piewm/Makefile b/x11-wm/piewm/Makefile index a50c25e3a94f..5576d3acc8ec 100644 --- a/x11-wm/piewm/Makefile +++ b/x11-wm/piewm/Makefile @@ -3,7 +3,7 @@ PORTNAME= piewm PORTVERSION= 1.04 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11-wm MASTER_SITES= http://www.crynwr.com/piewm/ diff --git a/x11-wm/piewm/files/patch-twm.h b/x11-wm/piewm/files/patch-twm.h new file mode 100644 index 000000000000..2f8cda52e7bd --- /dev/null +++ b/x11-wm/piewm/files/patch-twm.h @@ -0,0 +1,15 @@ +--- twm.h.orig 1998-06-03 08:42:52.000000000 -0700 ++++ twm.h 2013-06-01 08:23:26.000000000 -0700 +@@ -305,6 +305,12 @@ + #define TBPM_MENU ":menu" /* name of titlebar pixmap for menus */ + #define TBPM_QUESTION ":question" /* name of unknown titlebar pixmap */ + ++#ifndef X_NOT_STDC_ENV ++#include <stdlib.h> ++#else ++extern char *malloc(), *calloc(), *realloc(), *getenv(); ++extern int free(); ++#endif + extern void Reborder(), Done(); + void ComputeCommonTitleOffsets(); + void ComputeWindowTitleOffsets(), ComputeTitleLocation(); |