From 2a77e84e87cb842cb5334ff30d0f0ae60e8aeaaf Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 26 May 2018 13:07:40 -0600 Subject: [PATCH] libDtCmP: use TIRPC on linux, fix some warnings --- cde/programs/dtcm/libDtCmP/Imakefile | 3 +++ cde/programs/dtcm/libDtCmP/timeops.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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(); } -- 2.25.1