diff options
author | drh <drh@noemail.net> | 2019-02-20 19:06:16 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-02-20 19:06:16 +0000 |
commit | 7e85e9033ff34f8f75e5bb56152be39be39a62a5 (patch) | |
tree | 3bc4d58f44889a7a80570b27f37dceb34bb979d8 /test/dbfuzz2.c | |
parent | 8cf92890f28ace3c510c448b5be6de2ca96016c2 (diff) | |
download | sqlite-7e85e9033ff34f8f75e5bb56152be39be39a62a5.tar.gz sqlite-7e85e9033ff34f8f75e5bb56152be39be39a62a5.zip |
Disable unix-specific features of dbfuzz2 when compiling on windows.
FossilOrigin-Name: af84774d1eebcfe6a61b564b4edf280ad3c3a93f39b7f70b6fcc56f7bbdfb9eb
Diffstat (limited to 'test/dbfuzz2.c')
-rw-r--r-- | test/dbfuzz2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dbfuzz2.c b/test/dbfuzz2.c index 1649d42d5..caf39215e 100644 --- a/test/dbfuzz2.c +++ b/test/dbfuzz2.c @@ -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]; } |