diff options
author | wtc%netscape.com <devnull@localhost> | 2002-05-25 00:54:46 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-05-25 00:54:46 +0000 |
commit | 5a33047903d1ef5d5f11e08c872a92d2c1cf1c20 (patch) | |
tree | 6c98dab93b50a5cfe85ab642a2d65e05572f0095 | |
parent | 555923c14e55722a970ee371ea9640715ed5328f (diff) | |
download | nss-hg-5a33047903d1ef5d5f11e08c872a92d2c1cf1c20.tar.gz |
Bug 142575: a better fix. (NSS_3_4_BRANCH).
-rw-r--r-- | security/nss/lib/nss/nssinit.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/security/nss/lib/nss/nssinit.c b/security/nss/lib/nss/nssinit.c index 775290f90..6d7f84f99 100644 --- a/security/nss/lib/nss/nssinit.c +++ b/security/nss/lib/nss/nssinit.c @@ -60,8 +60,15 @@ * in NSS 3.4. See bug 142575. */ #ifdef WIN32 -/* Function forwarder to mktemp in softokn3 */ -#pragma comment(linker, "/export:mktemp=softokn3.mktemp") +#include <io.h> + +char * +nss_mktemp(char *path) +{ + return _mktemp(path); +} + +#pragma comment(linker, "/export:mktemp=_nss_mktemp") #endif #define NSS_MAX_FLAG_SIZE sizeof("readOnly")+sizeof("noCertDB")+ \ |