Add a patch to stop crashing on amd64.

PR:		ports/179179
Submitted by:	David Wolfskill <david@catwhisker.org> (maintainer)
This commit is contained in:
Raphael Kubo da Costa 2013-06-11 21:19:37 +00:00
parent 74d81c8e2b
commit 85b6145985
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320644
2 changed files with 16 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= piewm
PORTVERSION= 1.04
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= x11-wm
MASTER_SITES= http://www.crynwr.com/piewm/

View file

@ -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();