diff --git a/libtransmission/bencode.c b/libtransmission/bencode.c index d85b59aa2..280f31cab 100644 --- a/libtransmission/bencode.c +++ b/libtransmission/bencode.c @@ -14,8 +14,7 @@ #include /* isdigit() */ #include #include /* fabs() */ -#include -#include /* realpath() */ +#include /* rename() */ #include #ifdef WIN32 /* tr_mkstemp() */ @@ -24,10 +23,8 @@ #define _S_IWRITE 128 #endif -#include /* stat() */ -#include /* stat() */ -#include -#include /* stat() */ +#include /* setlocale() */ +#include /* write(), unlink() */ #include