libDtCmP: use TIRPC on linux, fix some warnings
This commit is contained in:
@@ -17,6 +17,9 @@ DEFINES = -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N \
|
|||||||
-DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
|
-DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
|
||||||
-DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)"
|
-DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)"
|
||||||
|
|
||||||
|
#if defined(LinuxArchitecture)
|
||||||
|
EXTRA_INCLUDES = $(TIRPCINC)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SunArchitecture
|
#ifdef SunArchitecture
|
||||||
XCOMM Uncomment to build using Federated Naming Services. To activate
|
XCOMM Uncomment to build using Federated Naming Services. To activate
|
||||||
|
|||||||
@@ -1014,7 +1014,7 @@ init_time()
|
|||||||
if (getenv("TZ") == NULL){
|
if (getenv("TZ") == NULL){
|
||||||
char *tzptr;
|
char *tzptr;
|
||||||
tzptr = malloc(strlen(tzname[0]) + strlen(tzname[1]) + 10);
|
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);
|
putenv(tzptr);
|
||||||
tzset();
|
tzset();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user