summaryrefslogtreecommitdiff
path: root/security/nss/lib
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-05-25 01:02:39 +0000
committerwtc%netscape.com <devnull@localhost>2002-05-25 01:02:39 +0000
commitadea7e0f9d9f9329f133f331cadce0e011df7ae9 (patch)
tree28f0f4227079c5a7be7ffdfeff4dda3c839626af /security/nss/lib
parent875e65bc5978e80e9665e176b3545cd045bfefa6 (diff)
downloadnss-hg-adea7e0f9d9f9329f133f331cadce0e011df7ae9.tar.gz
Bug 142575: a better fix.
Diffstat (limited to 'security/nss/lib')
-rw-r--r--security/nss/lib/nss/nssinit.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/security/nss/lib/nss/nssinit.c b/security/nss/lib/nss/nssinit.c
index bc24ca535..a0f3f66e4 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")+ \