1
0
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:
norohind 2022-10-15 01:52:13 +03:00
parent 266a5f7d7a
commit f4f3de8be9
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1
3 changed files with 5 additions and 5 deletions

@ -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)
{