diff options
author | nelsonb%netscape.com <devnull@localhost> | 2004-01-19 01:05:53 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2004-01-19 01:05:53 +0000 |
commit | aa98a9cf1ffb2e01035ea4538e7ef6cce5715912 (patch) | |
tree | 8d747f272e7a778b3eb91fa43cde7a077793add8 | |
parent | 24200b7b0e1806577e4549e09f12cd2a20c4be6c (diff) | |
download | nss-hg-aa98a9cf1ffb2e01035ea4538e7ef6cce5715912.tar.gz |
Make this code build on Windows as well as Unix.
-rw-r--r-- | security/nss/cmd/pk11util/pk11util.c | 9 |
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; } |