summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornelsonb%netscape.com <devnull@localhost>2004-01-19 01:05:53 +0000
committernelsonb%netscape.com <devnull@localhost>2004-01-19 01:05:53 +0000
commitaa98a9cf1ffb2e01035ea4538e7ef6cce5715912 (patch)
tree8d747f272e7a778b3eb91fa43cde7a077793add8
parent24200b7b0e1806577e4549e09f12cd2a20c4be6c (diff)
downloadnss-hg-aa98a9cf1ffb2e01035ea4538e7ef6cce5715912.tar.gz
Make this code build on Windows as well as Unix.
-rw-r--r--security/nss/cmd/pk11util/pk11util.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/security/nss/cmd/pk11util/pk11util.c b/security/nss/cmd/pk11util/pk11util.c
index 0ee3d8986..e77098202 100644
--- a/security/nss/cmd/pk11util/pk11util.c
+++ b/security/nss/cmd/pk11util/pk11util.c
@@ -36,13 +36,16 @@
#include <string.h>
#if defined(WIN32)
+#undef __STDC__
+#include "fcntl.h"
#include "io.h"
+#else
+#include <unistd.h>
+#include <sys/fcntl.h>
#endif
#include "secutil.h"
-#include <unistd.h>
-#include <sys/fcntl.h>
#include "nspr.h"
#include "prtypes.h"
@@ -379,7 +382,7 @@ CK_RV ArrayTemplate(char *bp, char *attributes)
char *cur = ap;
ConstType type;
- ap = index(ap,',');
+ ap = strchr(ap,',');
if (ap) {
*ap++ = 0;
}