mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Bodge around the failing Coverity build in winshare.c.
The winegcc hack I use for my Coverity builds is currently using a version of wincrypt.h that's missing a couple of constants I use. Ensure they're defined by hand, but (just in case I defined them _wrong_) also provide a command-line define so I can do that only in the case of Coverity builds. [originally from svn r10234]
This commit is contained in:
parent
cc66c86e73
commit
e11f8ee794
@ -25,7 +25,7 @@ enddelegate
|
||||
# Windows scanner for download).
|
||||
delegate covscan32wine
|
||||
in putty do tar xzvf cov-int.tar.gz
|
||||
in putty/windows do cov-build --dir ../cov-int make -f Makefile.cyg CC=winegcc RC=wrc
|
||||
in putty/windows do cov-build --dir ../cov-int make -f Makefile.cyg CC=winegcc RC=wrc XFLAGS=-DCOVERITY
|
||||
in putty do tar czvf cov-int.tar.gz cov-int
|
||||
return putty/cov-int.tar.gz
|
||||
enddelegate
|
||||
|
@ -16,6 +16,22 @@
|
||||
|
||||
#include "winsecur.h"
|
||||
|
||||
#ifdef COVERITY
|
||||
/*
|
||||
* The hack I use to build for Coverity scanning, using winegcc and
|
||||
* Makefile.cyg, didn't provide some defines in wincrypt.h last time I
|
||||
* looked. Therefore, define them myself here, but enclosed in #ifdef
|
||||
* COVERITY to ensure I don't make up random nonsense values for any
|
||||
* real build.
|
||||
*/
|
||||
#ifndef CRYPTPROTECTMEMORY_BLOCK_SIZE
|
||||
#define CRYPTPROTECTMEMORY_BLOCK_SIZE 16
|
||||
#endif
|
||||
#ifndef CRYPTPROTECTMEMORY_CROSS_PROCESS
|
||||
#define CRYPTPROTECTMEMORY_CROSS_PROCESS 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define CONNSHARE_PIPE_PREFIX "\\\\.\\pipe\\putty-connshare"
|
||||
#define CONNSHARE_MUTEX_PREFIX "Local\\putty-connshare-mutex"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user