[Scribus] Compile error with Scribus 1.30 CVS on FreeBSD

Martin Costabel costabel
Sat Mar 5 21:12:26 CET 2005


Craig Bradney wrote:
> On Monday 28 February 2005 22:01, Martin Costabel wrote:
> 
>>Samudra Reiher wrote:
>>[]
>>
>>
>>>Seems that mkdir requires the following header files on freebsd:
>>>#include <sys/types.h>
>>>#include <sys/stat.h>
>>
>>On Mac OS X (a relative of freebsd), I have been adding the
>>#include <sys/stat.h>
>>here, too, since 1.2.1.
> 
> 
> Strange.. ok.. will add it to CVS.. 

Doesn't seem to have arrived yet. Instead, the new scribus/fileunzip.cpp 
has the same problem. I also need to make some char into const char. On 
the Mac, I am now doing

perl -pi.bak -e '
   s|(\# include \<unistd\.h\>.*)|\#include \<sys/stat.h\>\n$1|g ;
   s|int makedir \(char \*newdir\)|int makedir \(const char \*newdir\)|g ;
   s|int mymkdir\(char\* dirname\)|int mymkdir \(const char \*dirname\)|g ;
   ' scribus/plugins/fileloader/oodraw/sxwunzip.cpp scribus/fileunzip.cpp
cp scribus/plugins/fileloader/oodraw/sxwunzip.cpp 
scribus/plugins/gettext/sxwim/sxwunzip.cpp

-- 
Martin







More information about the scribus mailing list