1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix building under -CURRENT (gcc 3.3) [1]

Use %%DOCSDIR%% instead of hardcoded path (save 10 bytes) [2]

Submitted by:	Simon Barner <barner@in.tum.de> [1], osa [2]
This commit is contained in:
Sergey A. Osokin 2003-07-24 15:10:05 +00:00
parent 9b92c3b817
commit bb475e4713
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85527
2 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- IFile.cpp.orig Wed Jul 23 04:32:54 2003
+++ IFile.cpp Wed Jul 23 04:35:43 2003
@@ -100,7 +100,7 @@
while(insz > 0) {
size_t result;
outsz = BUFFSIZE;
- result = iconv(ifile->iconv, &(char*)inptr, &insz, &outptr, &outsz);
+ result = iconv(ifile->iconv, &inptr, &insz, &outptr, &outsz);
total += fwrite(outbuf, sizeof(char), BUFFSIZE-outsz, ifile->file);
if(result == (size_t)-1 && errno != E2BIG) {
return total;

View File

@ -1,4 +1,4 @@
bin/xmlppm
bin/xmlunppm
%%PORTDOCS%%share/doc/xmlppm/README
%%PORTDOCS%%@dirrm share/doc/xmlppm
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%