mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Disable unix-specific features of dbfuzz2 when compiling on windows.
FossilOrigin-Name: af84774d1eebcfe6a61b564b4edf280ad3c3a93f39b7f70b6fcc56f7bbdfb9eb
This commit is contained in:
@ -43,8 +43,10 @@
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
#include <stdint.h>
|
||||
#ifndef _WIN32
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#include "sqlite3.h"
|
||||
|
||||
/*
|
||||
@ -261,6 +263,7 @@ int LLVMFuzzerInitialize(int *pArgc, char ***pArgv){
|
||||
szMax = strtol(argv[++i], 0, 0);
|
||||
continue;
|
||||
}
|
||||
#ifndef _WIN32
|
||||
if( strcmp(z,"max-stack")==0
|
||||
|| strcmp(z,"max-data")==0
|
||||
|| strcmp(z,"max-as")==0
|
||||
@ -291,6 +294,7 @@ int LLVMFuzzerInitialize(int *pArgc, char ***pArgv){
|
||||
zType, (int)x.rlim_cur, (int)y.rlim_cur);
|
||||
continue;
|
||||
}
|
||||
#endif /* _WIN32 */
|
||||
}
|
||||
argv[j++] = argv[i];
|
||||
}
|
||||
|
Reference in New Issue
Block a user