aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-12-19 15:54:57 +0000
committerWerner Koch <[email protected]>2015-12-19 15:56:31 +0000
commit56daf9b6e53b67f75305e7806860a3db94e3be2d (patch)
tree97cf4296538daed95495485f5f3b8802ad3b602c
parentpo: Auto-update (diff)
downloadgnupg-56daf9b6e53b67f75305e7806860a3db94e3be2d.tar.gz
gnupg-56daf9b6e53b67f75305e7806860a3db94e3be2d.zip
w32: Avoid warning when using newer mingw versions.
* g10/tdbio.c (ftruncate): Do not define if already defined. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--g10/tdbio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index be7cc1d26..9d722c20a 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -38,7 +38,7 @@
#include "trustdb.h"
#include "tdbio.h"
-#if defined(HAVE_DOSISH_SYSTEM)
+#if defined(HAVE_DOSISH_SYSTEM) && !defined(ftruncate)
#define ftruncate chsize
#endif