mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04: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:
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
11
textproc/xmlppm/files/patch-IFile.cpp
Normal file
11
textproc/xmlppm/files/patch-IFile.cpp
Normal 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;
|
|
@ -1,4 +1,4 @@
|
||||||
bin/xmlppm
|
bin/xmlppm
|
||||||
bin/xmlunppm
|
bin/xmlunppm
|
||||||
%%PORTDOCS%%share/doc/xmlppm/README
|
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||||
%%PORTDOCS%%@dirrm share/doc/xmlppm
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue