summaryrefslogtreecommitdiff
path: root/www/screws/patches/patch-aj
diff options
context:
space:
mode:
authordholland <dholland>2008-08-17 20:09:12 +0000
committerdholland <dholland>2008-08-17 20:09:12 +0000
commitcedadbf267dbe211a3665a052232787fa57b529b (patch)
tree36d8377acb250daada838f7dd71f2fc9d1d0ffe4 /www/screws/patches/patch-aj
parentc99dfbd0249c1447d62f57c60ca2c25919ea0b77 (diff)
downloadpkgsrc-cedadbf267dbe211a3665a052232787fa57b529b.tar.gz
Fix broken amd64 build:
- use -fPIC in all the needed places. - add USE_TOOLS+=gmake; this requires gmake to build properly. - add missing dir to PLIST. Also fix some LP64 issues that warned but didn't break the build. Note however that the SSL code will not work in an LP64 environment; it relies heavily on being able to cast pointers to int without losing information. The ssl option should probably be blacklisted on LP64 platforms. PKGREVISION++.
Diffstat (limited to 'www/screws/patches/patch-aj')
-rw-r--r--www/screws/patches/patch-aj21
1 files changed, 21 insertions, 0 deletions
diff --git a/www/screws/patches/patch-aj b/www/screws/patches/patch-aj
new file mode 100644
index 00000000000..ca69feee064
--- /dev/null
+++ b/www/screws/patches/patch-aj
@@ -0,0 +1,21 @@
+$NetBSD: patch-aj,v 1.1 2008/08/17 20:09:12 dholland Exp $
+
+--- src/Server/Error.c~ 2004-09-16 18:05:58.000000000 -0400
++++ src/Server/Error.c 2008-08-17 15:55:37.000000000 -0400
+@@ -3,6 +3,7 @@
+ * Copylefted by pancake@phreaker.net at 2003
+ */
+
++#include <unistd.h>
+ #include "Error.h"
+
+ /* Error strings array */
+@@ -45,7 +46,7 @@ Error(str,err)
+ char *cwd;
+ if ( err==ERROR_CHDIR )
+ {
+- cwd=(char*)getcwd((char*)0,0); // Use static instead of alloc
++ cwd=getcwd((char*)0,0); // Use static instead of alloc
+ if (cwd)
+ {
+ printf("CWD : %s",cwd);