libDtCmP: use TIRPC on linux, fix some warnings
authorJon Trulson <jon@radscan.com>
Sat, 26 May 2018 19:07:40 +0000 (13:07 -0600)
committerJon Trulson <jon@radscan.com>
Fri, 1 Jun 2018 04:23:19 +0000 (22:23 -0600)
cde/programs/dtcm/libDtCmP/Imakefile
cde/programs/dtcm/libDtCmP/timeops.c

index 600f339e1277b5e1372f70c6a6df4b16a5b2467b..9634284a4f0d7646178394acdb0691cad185f4d3 100644 (file)
@@ -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
index 1b3df8dc4962d94fa54793ccbd1e89954bc8fc28..06393be5851e4db5509bc31c42fbd61c01bad5fe 100644 (file)
@@ -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();
        }