mirror of
https://github.com/norohind/hans.git
synced 2025-04-14 21:50:33 +03:00
Fixed compilation issues on Linux
This commit is contained in:
parent
455da8b0da
commit
7261752c5c
@ -25,6 +25,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <syslog.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -28,7 +28,9 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <syslog.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef ip IpHeader;
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "exception.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -24,12 +24,16 @@
|
||||
#include <stdio.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <pwd.h>
|
||||
#include <netdb.h>
|
||||
// #include <uuid/uuid.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <syslog.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
void usage()
|
||||
{
|
||||
|
@ -28,6 +28,8 @@
|
||||
|
||||
#include "tunemu.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/io.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
@ -42,6 +44,7 @@
|
||||
#include <stdint.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PPPPROTO_CTL 1
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -24,7 +24,9 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/select.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "tun.h"
|
||||
|
||||
#include <string>
|
||||
#include <sys/types.h>
|
||||
|
||||
class Worker
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user