Coverity spotted that there were some paths through the test functions that would double-close some sockets.
This is a fix for bug #93 on nmathewson/Libevent.
This brings us up to tinytest 709a36ba63ff16d8
Patch from Harlan Stenn.
Based on a patch from Harlan Stenn.
The clang compiler provided with macosx emits warnings like: CC bufferevent.lo clang: warning: argument unused during compilation: '-I .' clang: warning: argument unused during compilation: '-I ./compat' clang: warning: argument unused during compilation: '-I ./include' clang: warning: argument unused during compilation: '-I ./include' for each file being compiled. This generates a lot of noise during compilation making it hard to see "real" errors. This patch mute those warnings.
BUGFIX: Fix compilation on systems with EPOLLRDHUP undefined.
We had cmake and autoconf tests for the inet_aton function... but we never actually use it any more. (The autoconf tests still use the callability of inet_aton to decide whether we need to link against -lresolv) Reported by Harlan Stenn.
The library event_extras is named event_extra when building with GNU autotools
Since epolltable-internal.h uses this define, it must be defined before that is included.
The CLang provided through Xcode on Mac OSX emits warnings for all unused include paths making the compilation extremely verbose.
Some architectures (like AArch64) do not have deprecated syscalls. Signed-off-by: Marcin Juszkiewicz <email@example.com>
On windows all tests will fail if EVENT_NOWIN32 is set, since then there will be no backend available. Question is if we should simply disable the environment variable check on Windows, since there's only one backend available anyway?