mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
Move int includes to hydra-mod and add includes.
This makes the code compile on OSX.
This commit is contained in:
parent
ad8f77bbf1
commit
35ece53d3b
3 changed files with 13 additions and 8 deletions
|
@ -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);
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
11
hydra-sip.c
11
hydra-sip.c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue