mirror of
https://github.com/yarrick/iodine.git
synced 2025-08-22 02:50:34 +00:00
Compile on freebsd
This commit is contained in:
4
dns.c
4
dns.c
@@ -37,6 +37,10 @@
|
||||
#include "dns.h"
|
||||
#include "encoding.h"
|
||||
|
||||
// For FreeBSD
|
||||
#ifndef MIN
|
||||
#define MIN(a,b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
static int host2dns(const char *, char *, int);
|
||||
static int dns_write(int, int, char *, int, char);
|
||||
|
1
iodine.c
1
iodine.c
@@ -20,6 +20,7 @@
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
|
Reference in New Issue
Block a user