Merge pull request #254 from crondaemon/osx

compile better on OSX
This commit is contained in:
van Hauser 2017-08-19 17:45:51 +02:00 committed by GitHub
commit 4ead67252f
4 changed files with 14 additions and 9 deletions

View file

@ -9,7 +9,7 @@ compiler:
- gcc - gcc
matrix: matrix:
before_install: before_install:
- $CC --version - if [ "$TRAVIS_OS_NAME" == "osx" ];then brew install libgcrypt; fi
before_script: before_script:
./configure ./configure
script: script:

View file

@ -3,6 +3,14 @@
#include "hydra.h" #include "hydra.h"
#ifdef __sun
#include <sys/int_types.h>
#elif defined(__FreeBSD__) || defined(__IBMCPP__) || defined(_AIX)
#include <inttypes.h>
#else
#include <stdint.h>
#endif
extern char quiet; extern char quiet;
extern void hydra_child_exit(int32_t code); extern void hydra_child_exit(int32_t code);

View file

@ -34,6 +34,8 @@ It's particularly true on windows XP
*/ */
#include <hydra-mod.h>
#ifndef LIBOPENSSL #ifndef LIBOPENSSL
#include <stdio.h> #include <stdio.h>
void dummy_rdp() { void dummy_rdp() {

View file

@ -5,6 +5,9 @@
* *
* 05042011 david: modified to use sasl lib * 05042011 david: modified to use sasl lib
*/ */
#include "hydra-mod.h"
#ifndef LIBOPENSSL #ifndef LIBOPENSSL
#include <stdio.h> #include <stdio.h>
void dummy_sip() { void dummy_sip() {
@ -12,15 +15,7 @@ void dummy_sip() {
} }
#else #else
#ifdef __sun
#include <sys/int_types.h>
#elif defined(__FreeBSD__) || defined(__IBMCPP__) || defined(_AIX)
#include <inttypes.h>
#else
#include <stdint.h>
#endif
#include "sasl.h" #include "sasl.h"
#include "hydra-mod.h"
extern int32_t hydra_data_ready_timed(int32_t socket, long sec, long usec); extern int32_t hydra_data_ready_timed(int32_t socket, long sec, long usec);