diff options
author | rakuco <rakuco@FreeBSD.org> | 2013-06-12 05:19:37 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2013-06-12 05:19:37 +0800 |
commit | dfa104e9a747e373254a488225dca359ecaea887 (patch) | |
tree | d408c456c70a060456b1d4fd902d722ed6c9bd72 /x11-wm/piewm | |
parent | c31e745c3197ecded8e3899b60c101246754075a (diff) | |
download | freebsd-ports-graphics-dfa104e9a747e373254a488225dca359ecaea887.tar.gz freebsd-ports-graphics-dfa104e9a747e373254a488225dca359ecaea887.tar.zst freebsd-ports-graphics-dfa104e9a747e373254a488225dca359ecaea887.zip |
Add a patch to stop crashing on amd64.
PR: ports/179179
Submitted by: David Wolfskill <david@catwhisker.org> (maintainer)
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 a50c25e3a94..5576d3acc8e 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 00000000000..2f8cda52e7b --- /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(); |