Closed
Bug 189089
Opened 22 years ago
Closed 21 years ago
port nspr w32 now.c fix to directory
Categories
(Directory :: LDAP C SDK, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
5.12
People
(Reporter: Biesinger, Assigned: mcs)
Details
Attachments
(1 file)
1.23 KB,
patch
|
Details | Diff | Splinter Review |
see bug 188396 - now.c won't work for dates after 2038. windows provides an api for that, though, so it should be used. bug 188396 already contains the patch for the nspr now.c, this should be simple.
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•22 years ago
|
Target Milestone: --- → 5.12
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
Looks ok - should now be declared long long, or is that equivalent to __int64 on Windows? If this is exactly the same as the NSPR fix, then it's probably ok.
Comment 3•22 years ago
|
||
Rich, I guess you are right. We probably should declare 'now' as: #ifdef __GNUC__ long long now; #else __int64 now; #endif Apparently gcc on Windows also understands Microsoft Visual C++'s __int64 type because the code compiles.
Comment 4•22 years ago
|
||
The change is exactly the one from NSPR. Only the #ifdef __GNUC__ was added to the NSPR code later, so I included it. now is declared as __int64 only for WIN32, Unix systems use gettimeofday() and a long long now.
Assignee | ||
Comment 5•21 years ago
|
||
Fix committed to the trunk: mozilla/directory/c-sdk/config/now.c new revision: 5.1; previous revision: 5.0 Fix 189089 - port nspr w32 now.c fix to directory. See bug # 188396 - NSPR should not use ftime on windows. This fixes a potential Year 2038 issue. Please re-open this bug if we need this fix on ldapcsdk_50_client_branch right away.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•