Move int includes to hydra-mod and add includes.

This makes the code compile on OSX.
This commit is contained in:
Dario Lombardo 2017-08-19 00:50:17 +02:00
parent ad8f77bbf1
commit 35ece53d3b
3 changed files with 13 additions and 8 deletions

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);