From: Ulrich Wilkens Date: Wed, 21 Oct 2015 16:49:07 +0000 (+0200) Subject: Fix FreeBSD 10.2 build X-Git-Tag: 2.2.4~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f8fdf4920fe29d13a9036ec3b0fc6096b821813d;p=oweals%2Fcde.git Fix FreeBSD 10.2 build --- diff --git a/cde/config/cf/FreeBSD.cf b/cde/config/cf/FreeBSD.cf index ce3e62c2..c8945df4 100644 --- a/cde/config/cf/FreeBSD.cf +++ b/cde/config/cf/FreeBSD.cf @@ -45,6 +45,9 @@ USE_GCC = UseGcc #define StandardCppDefines -traditional CppArgs #endif +#ifndef PerlCmd +#define PerlCmd /usr/local/bin/perl +#endif #undef InstallCmd #define InstallCmd /usr/bin/install #undef KornShell diff --git a/cde/programs/dtmail/dtmail/Imakefile b/cde/programs/dtmail/dtmail/Imakefile index cd6e89cf..a360597a 100644 --- a/cde/programs/dtmail/dtmail/Imakefile +++ b/cde/programs/dtmail/dtmail/Imakefile @@ -5,8 +5,8 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES) EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB) INCLUDES = -I. -I../include -I../include/MotifApp \ - -I../include/utils -I../include/DtMail \ - -I../libDtMail/RFC -I$(CDELIBSRC) -I$(DTHELPSRC) + -I../include/utils -I../include/DtMail \ + -I../libDtMail/RFC -I$(CDELIBSRC) -I$(DTHELPSRC) $(STD_INCLUDES) #ifndef DtMailDefines # define DtMailDefines diff --git a/cde/programs/dtmail/dtmailpr/Imakefile b/cde/programs/dtmail/dtmailpr/Imakefile index 171913c6..929d49fe 100644 --- a/cde/programs/dtmail/dtmailpr/Imakefile +++ b/cde/programs/dtmail/dtmailpr/Imakefile @@ -4,7 +4,8 @@ XCOMM $TOG: Imakefile /main/15 1998/08/05 13:24:40 mgreess $ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES) EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB) -INCLUDES = -I. -I../include -I../../dtcompat -I../../../. -I$(CDELIBSRC) +INCLUDES = -I. -I../include -I../../dtcompat -I../../../. \ + -I$(CDELIBSRC) $(STD_INCLUDES) #ifndef DtMailDefines # define DtMailDefines diff --git a/cde/programs/dtmail/include/DtMail/DtMail.hh b/cde/programs/dtmail/include/DtMail/DtMail.hh index 566298b4..f326b506 100644 --- a/cde/programs/dtmail/include/DtMail/DtMail.hh +++ b/cde/programs/dtmail/include/DtMail/DtMail.hh @@ -26,7 +26,7 @@ #include #include -#if defined(sun) +#if defined(sun) || defined(__FreeBSD__) #include #endif #include @@ -914,7 +914,7 @@ friend class Session; DTMailError_t minor_code); }; -#if defined(sun) +#if defined(sun) || defined(__FreeBSD__) template size_t iconv (iconv_t i, const T inbuf, size_t* inleft, char** outbuf, size_t* outleft)