Add two more little patches to fix warnings. One of the warnings was causing

build failure on Alpha-stable -- but not on any other platform...

When I added this big patch, I though all of the problems were fixed, and
closed the corresponding PR. Turned out, Alpha-stable remained broken, even
though the -current started to build.

Just as before, no PORTREVISION bump because no changes are expected on
the platforms were this built before.

Tested on: panther, bento, axp0, beast
PR:	ports/40444
This commit is contained in:
Mikhail Teterin 2002-11-20 23:26:35 +00:00
parent c59671f678
commit 08e0602bc7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70619

View File

@ -147,3 +147,21 @@
+ FastAllocArray(decompressBuffer, int8, size);
if (decompressBuffer)
decompressSize = size;
--- oless/h/dir.hxx Thu Feb 7 17:04:15 2002
+++ oless/h/dir.hxx Wed Nov 20 13:38:02 2002
@@ -87,5 +87,5 @@
//
//-----------------------------------------------------------------------
-const unsigned int CBDIRPAD = DIRENTRYSIZE - sizeof(SPreDirEntry);
+const unsigned int CBDIRPAD = (unsigned int)DIRENTRYSIZE - (unsigned int)sizeof(SPreDirEntry);
// DirEntry bit flags are used for the following private state
--- oless/wchar.c Fri Feb 8 11:23:42 2002
+++ oless/wchar.c Wed Nov 20 13:59:38 2002
@@ -32,4 +32,6 @@
#ifndef _MSC_VER
+#include <string.h> /* strlen()'s declaration */
+
size_t sbstowcs(WCHAR *pwcs, const char *s, size_t n )
{