diff --git a/.travis.yml b/.travis.yml index 070d52a..19f1e15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ compiler: - gcc matrix: before_install: - - $CC --version + - if [ "$TRAVIS_OS_NAME" == "osx" ];then brew install libgcrypt; fi before_script: ./configure script: diff --git a/hydra-mod.h b/hydra-mod.h index bf72b7c..5d613f7 100644 --- a/hydra-mod.h +++ b/hydra-mod.h @@ -3,6 +3,14 @@ #include "hydra.h" +#ifdef __sun + #include +#elif defined(__FreeBSD__) || defined(__IBMCPP__) || defined(_AIX) + #include +#else + #include +#endif + extern char quiet; extern void hydra_child_exit(int32_t code); diff --git a/hydra-rdp.c b/hydra-rdp.c index af281a4..d4ad81d 100644 --- a/hydra-rdp.c +++ b/hydra-rdp.c @@ -34,6 +34,8 @@ It's particularly true on windows XP */ +#include + #ifndef LIBOPENSSL #include void dummy_rdp() { diff --git a/hydra-sip.c b/hydra-sip.c index c1411fb..7d681e8 100644 --- a/hydra-sip.c +++ b/hydra-sip.c @@ -5,6 +5,9 @@ * * 05042011 david: modified to use sasl lib */ + +#include "hydra-mod.h" + #ifndef LIBOPENSSL #include void dummy_sip() { @@ -12,15 +15,7 @@ void dummy_sip() { } #else -#ifdef __sun - #include -#elif defined(__FreeBSD__) || defined(__IBMCPP__) || defined(_AIX) - #include -#else - #include -#endif #include "sasl.h" -#include "hydra-mod.h" extern int32_t hydra_data_ready_timed(int32_t socket, long sec, long usec);