1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

libDtCmP: use TIRPC on linux, fix some warnings

This commit is contained in:
Jon Trulson 2018-05-26 13:07:40 -06:00
parent 2bcd57ce33
commit 2a77e84e87
2 changed files with 4 additions and 1 deletions

View 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

View 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();
}