Commit Graph

439 Commits

Author SHA1 Message Date
Mike Gelfand ea48360212 #5663: Rework directory watching in daemon
Implement BSD/Darwin (kqueue) and Windows (ReadDirectoryChanges) mechanisms
for receiving directory change notifications. Use events instead of polling
for changes. Retry file parsing up to 3 times before giving up.

Huge thanks to missionsix for preparing first two versions of the patch.
2016-01-02 14:28:59 +00:00
Mike Gelfand d4213f09d5 On second thought, bring back stdbool.h check back
Might be useful for uClibc (which still doesn't provide it) and others.
2015-12-29 19:44:50 +00:00
Mike Gelfand eb8fc35ac6 Remove useless checks and definitions (C99)
Now that MSVC support for C99 is quite good, remove previously needed but
now unused checks and definitions, like PRI* format macros (including
PRIdMAX and TR_PRIuSIZE, replaced with %jd and %zu) and inline macro.
Also, remove ssize_t typedef and replace few occurences with ev_ssize_t.
Also, remove check for stdbool.h availability (guaranteed by C99) and
include it unconditionally (except when in C++ mode).
2015-12-29 19:37:31 +00:00
Mike Gelfand 69687544d7 #6005: Bump minimum OpenSSL version to 0.9.7, fix build for versions less than 0.9.8b 2015-10-13 21:24:31 +00:00
Mike Gelfand 5d48c2d3e9 #5851: Don't use _configthreadlocale if not provided by CRT (even if declaration is present) 2015-06-01 18:52:14 +00:00
Mike Gelfand ae5755dc1e #5851: Use per-thread locale setup if possible
This prevents crashes on concurrent tr_variantFromBuf, tr_variantToBuf
and tr_variantGetReal use.
2015-06-01 05:25:14 +00:00
Mike Gelfand 1bcebc2da9 Remove `-Wdeclaration-after-statement` flag (we use C99) 2015-05-03 11:44:18 +00:00
Mike Gelfand a1393e7b35 #5934: Generate REVISION file and use it in case of missing reliable source 2015-04-24 19:14:56 +00:00
Mike Gelfand 5cdd84fd28 Add support for WolfSSL (autoconf) 2015-03-15 17:08:10 +00:00
Mike Gelfand a2037bdbbd Define one of LFS macros instead of using xxx64 functions directly.
There're too many functions and types to consider, and benefits of not
using LFS macros aren't that big (I was thinking of using fts(3) but
that may not happen soon or at all).
2015-03-10 22:31:09 +00:00
Mike Gelfand 806f81c05c #5881: Explicitly state all possible crypto backend source files so that they are included into archive by `make dist` 2015-01-21 22:32:27 +00:00
Mike Gelfand fe47350656 Further adjustments to support PolarSSL 1.2 2015-01-07 14:05:58 +00:00
Mike Gelfand 30690fcf99 Lower minimum PolarSSL version required down to 1.2 2015-01-07 13:41:22 +00:00
Mike Gelfand d877fb9cde Add PolarSSL support 2015-01-07 13:19:00 +00:00
Mike Gelfand c7d2a7f959 #4400: Add CyaSSL support 2015-01-07 02:04:08 +00:00
Mike Gelfand 1d58af5082 Increase BASE64 encoding size when using system libb64
Remove BASE64 reference testing as it's only libb64 now.
Improve the test to ignore \r and \n when comparing BASE-encoded
strings to not fail on system (unpatched) libb64.
2015-01-03 21:35:20 +00:00
Mike Gelfand b928ae1ba8 Use libb64 instead of OpenSSL to encode/decode BASE64
Some crypto libraries (like CyaSSL, MatrixSSL and CommonCrypto) either
don't have or expose this functionality at all, expose only part of it,
or (like OpenSSL) have heavyweight API for it. Also, for the task as
easy as BASE64 encoding and decoding it's much better to use small and
simple specialized library.
2015-01-01 21:16:36 +00:00
Mike Gelfand ca8ecf3d06 #5809: Allow building against system dht library (patch by jbeich) 2014-12-28 00:14:46 +00:00
Mike Gelfand 7789c28f44 #5808: Don't embed path to DHT_LIBS in qtr.pro (patch by jbeich) 2014-12-28 00:02:50 +00:00
Mike Gelfand 189151cc03 #5805: Use bundled libutp by default if no system libutp found 2014-12-27 23:33:51 +00:00
Mike Gelfand d254312cb1 #5805: Allow building against system libutp (patch by jbeich) 2014-12-27 23:21:01 +00:00
Mike Gelfand 74a5bdb9e6 Don't mess with MinGW printf support for now (tricky) 2014-12-13 16:00:14 +00:00
Mike Gelfand 52a9d774e4 Fix compilation on Windows
This should not affect non-Win32 platforms in any way.
As for Win32 (both MinGW and MSVC), this should hopefully allow for
unpatched compilation. Correct functioning is not yet guaranteed though.
2014-12-13 15:22:39 +00:00
Mike Gelfand e7382071d0 Remove duplicate -Wcast-align flag, add canonicalize_file_name function check 2014-12-06 16:28:53 +00:00
Jordan Lee b325bc0a16 (trunk) #5759 compilation error, undefined reference to sqrt 2014-08-20 17:14:17 +00:00
Jordan Lee faba3219c1 (trunk, #5751) reduce ZLIB_MINIMUM from 1.2.5 to 1.2.3 for CentOS<7 support 2014-07-17 15:56:38 +00:00
Jordan Lee ab24ef9fcb use pkg-config to get the zlib cflags/libs; remove obsolete zlib.m4 macro 2014-07-13 21:54:56 +00:00
Mitchell Livingston 74e16f78bd bump to 2.84+ 2014-07-04 12:58:21 +00:00
Mitchell Livingston 0e01879974 Use built-in _WIN32 macro instead of WIN32 2014-07-04 00:00:07 +00:00
Mitchell Livingston 084273c106 Use built-in __APPLE__ macro instead of SYS_DARWIN and MACOSX 2014-07-03 19:20:12 +00:00
Jordan Lee 650091aed7 bump to 2.83+ 2014-06-10 01:32:51 +00:00
Jordan Lee 8e5f58e14a bump to 2.83 2014-05-18 19:45:08 +00:00
Jordan Lee 5d59b0e6ad remove apostrophes from AC_DEFINE calls 2014-05-09 01:30:18 +00:00
Jordan Lee a7137b7bb9 upgrade miniupnp version to 1.9. update autoconf script to detect the API version; update upnp.c's #ifdefs to use the API version. 2014-04-27 19:31:10 +00:00
Jordan Lee fef15a7ab2 (trunk, libT) #5643 'quota support for NetBSD >= 6' -- patch by wiz 2014-04-27 00:02:00 +00:00
Jordan Lee 34870bb938 (trunk) #5612 'transmission incorrectly determines CXX when ccache is used' -- fixed with patch from patrickdepinguin 2014-04-15 21:23:32 +00:00
Mitchell Livingston c76174dc0c #5601 Missing ',' comma in the libsystemd-daemon configure.ac 2014-02-09 17:24:58 +00:00
Mitchell Livingston 4ecbb29137 #5304 daemon fails to build on mac 2013-10-27 19:31:36 +00:00
Jordan Lee 4a904044e4 bump trunk to 2.82+ 2013-08-17 17:22:04 +00:00
Mitchell Livingston e7117b43dc bump to version 2.82 2013-08-09 02:26:31 +00:00
Jordan Lee acb1fb80dd bump version to 2.81+ 2013-07-20 15:20:36 +00:00
Jordan Lee 2ee7f001fc bump to 2.81 + first pass at 2.81 NEWS 2013-07-18 03:05:38 +00:00
Jordan Lee 836e497be6 bump to 2.80+ 2013-07-08 02:45:36 +00:00
Jordan Lee d85aa792e0 bump to 2.80 2013-06-26 02:31:46 +00:00
Jordan Lee 4ac417b331 (daemon) systemd support, part 1: add sd_notify() calls to transmission-daemon if libsystemd-daemon is detected at compile time 2013-06-07 23:31:26 +00:00
Mitchell Livingston bb0b5e139a sync mainline NEWS and version with 2.7x branch 2013-02-18 14:43:24 +00:00
Mitchell Livingston a61a67ec49 (trunk) #5279 Typo in configure.ac 2013-02-08 13:00:02 +00:00
Jordan Lee c0a0240dfd #5272 'quotactl breaks compilation of libT/platform.c on non-Xcode OS/X builds' -- fixed with patch from spaam 2013-02-05 14:38:25 +00:00
Mitchell Livingston 2d746af8ad (trunk) bump to 2.76+ 2013-01-09 01:30:01 +00:00
Jordan Lee a0657a7522 (trunk) only make .xz tarballs in make-dist. anyone who doesn't have xz by now has no excuse. 2013-01-05 18:45:28 +00:00