From: Jon Trulson Date: Sat, 26 May 2018 19:07:40 +0000 (-0600) Subject: libDtCmP: use TIRPC on linux, fix some warnings X-Git-Tag: 2.2.4a~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2a77e84e87cb842cb5334ff30d0f0ae60e8aeaaf;p=oweals%2Fcde.git libDtCmP: use TIRPC on linux, fix some warnings --- diff --git a/cde/programs/dtcm/libDtCmP/Imakefile b/cde/programs/dtcm/libDtCmP/Imakefile index 600f339e..9634284a 100644 --- a/cde/programs/dtcm/libDtCmP/Imakefile +++ b/cde/programs/dtcm/libDtCmP/Imakefile @@ -17,6 +17,9 @@ DEFINES = -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N \ -DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \ -DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)" +#if defined(LinuxArchitecture) +EXTRA_INCLUDES = $(TIRPCINC) +#endif #ifdef SunArchitecture XCOMM Uncomment to build using Federated Naming Services. To activate diff --git a/cde/programs/dtcm/libDtCmP/timeops.c b/cde/programs/dtcm/libDtCmP/timeops.c index 1b3df8dc..06393be5 100644 --- a/cde/programs/dtcm/libDtCmP/timeops.c +++ b/cde/programs/dtcm/libDtCmP/timeops.c @@ -1014,7 +1014,7 @@ init_time() if (getenv("TZ") == NULL){ char *tzptr; tzptr = malloc(strlen(tzname[0]) + strlen(tzname[1]) + 10); - sprintf (tzptr,"TZ=%s%d%s", tzname[0], timezone/3600, tzname[1]); + sprintf (tzptr,"TZ=%s%ld%s", tzname[0], timezone/3600, tzname[1]); putenv(tzptr); tzset(); }