mirror of
https://github.com/norohind/hans.git
synced 2025-04-22 00:40:28 +03:00
Make termux buildable, uses clang
This commit is contained in:
parent
266a5f7d7a
commit
f4f3de8be9
4
Makefile
4
Makefile
@ -2,8 +2,8 @@ LDFLAGS = `sh osflags ld $(MODE)`
|
||||
CFLAGS = -c -g `sh osflags c $(MODE)`
|
||||
CPPFLAGS = -c -g -std=c++98 -pedantic -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers `sh osflags c $(MODE)`
|
||||
TUN_DEV_FILE = `sh osflags dev $(MODE)`
|
||||
GCC = gcc
|
||||
GPP = g++
|
||||
GCC = clang
|
||||
GPP = clang++
|
||||
|
||||
.PHONY: directories
|
||||
|
||||
|
@ -37,9 +37,9 @@
|
||||
#include <signal.h>
|
||||
#include <memory>
|
||||
|
||||
#ifndef AI_V4MAPPED // Not supported on OpenBSD 6.0
|
||||
// #ifndef AI_V4MAPPED // Not supported on OpenBSD 6.0
|
||||
#define AI_V4MAPPED 0
|
||||
#endif
|
||||
// #endif
|
||||
|
||||
using std::string;
|
||||
|
||||
|
@ -54,7 +54,7 @@ static void winsystem(char *cmd)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define ip_path "/sbin/ip "
|
||||
#define ip_path "/data/data/com.termux/files/usr/bin/ip "
|
||||
|
||||
Tun::Tun(const string *device, int mtu)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user