Changeset 86220 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Sep 22, 2020 1:09:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/RTTimeZoneGetCurrent-posix.cpp
r86216 r86220 42 42 #include <iprt/stream.h> 43 43 44 #include <tzfile.h> 44 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) 45 #define TZDIR "/usr/share/zoneinfo" 46 #define TZ_MAGIC "TZif" 47 #else 48 #include <tzfile.h> 49 #endif 45 50 46 51 #define PATH_LOCALTIME "/etc/localtime" … … 84 89 if (RT_SUCCESS(rc)) 85 90 { 86 char achTZBuf[sizeof( struct tzhead)];91 char achTZBuf[sizeof(TZ_MAGIC)]; 87 92 88 93 rc = RTFileRead(hFile, achTZBuf, sizeof(achTZBuf), NULL);
Note:
See TracChangeset
for help on using the changeset viewer.