mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-06 17:50:40 +03:00
Resolve "Implicit declaration of function warning" when compiling Console.c and BridgeUnix.c
This commit is contained in:
parent
fd7707d95a
commit
975debfed4
@ -186,6 +186,7 @@ struct CAPTUREBLOCK{
|
|||||||
|
|
||||||
|
|
||||||
// Function prototype
|
// Function prototype
|
||||||
|
void FreeTap(VLAN *v);
|
||||||
void InitEth();
|
void InitEth();
|
||||||
void FreeEth();
|
void FreeEth();
|
||||||
bool IsEthSupported();
|
bool IsEthSupported();
|
||||||
|
@ -2048,7 +2048,13 @@ bool PasswordPrompt(char *password, UINT size)
|
|||||||
else if (c == 0xE0)
|
else if (c == 0xE0)
|
||||||
{
|
{
|
||||||
// Read one more character
|
// Read one more character
|
||||||
|
|
||||||
|
#ifdef OS_WIN32
|
||||||
c = getch();
|
c = getch();
|
||||||
|
#else // OS_WIN32
|
||||||
|
c = getc(stdin);
|
||||||
|
#endif // OS_WIN32
|
||||||
|
|
||||||
if (c == 0x4B || c == 0x53)
|
if (c == 0x4B || c == 0x53)
|
||||||
{
|
{
|
||||||
// Backspace
|
// Backspace
|
||||||
|
Loading…
Reference in New Issue
Block a user