Make this code build on Windows as well as Unix.

This commit is contained in:
nelsonb%netscape.com 2004-01-19 01:05:53 +00:00
Родитель 409d2b5a7a
Коммит b35fce94e4
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -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;
}