pkgsrc/www/screws/patches/patch-ak
dholland 89fb84fa74 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++.
2008-08-17 20:09:12 +00:00

20 lines
473 B
Text

$NetBSD: patch-ak,v 1.1 2008/08/17 20:09:12 dholland Exp $
--- src/Hsml/Headers.c~ 2004-09-16 18:05:58.000000000 -0400
+++ src/Hsml/Headers.c 2008-08-17 15:59:15.000000000 -0400
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
// HEADERS
char headers[1024]="";
@@ -11,7 +13,7 @@ void addHeader(char *str)
void printHeaders()
{
char *http;
- http=(char *)getenv("HTTP");
+ http=getenv("HTTP");
if (http&&http[0]=='1')
if (http)
{