Skip to content

build: fix missing include of ctype.h#3

Open
maxux wants to merge 1 commit into
RoliSoft:masterfrom
maxux:master
Open

build: fix missing include of ctype.h#3
maxux wants to merge 1 commit into
RoliSoft:masterfrom
maxux:master

Conversation

@maxux
Copy link
Copy Markdown

@maxux maxux commented May 6, 2023

Vanilla repository doesn't build on my Gentoo with GCC 12.

c++ -std=c++14 -Wall -Wextra -Ofast -DHAVE_PCAP=1 -lpcap -lpthread -lssl -lcrypto main.cpp -o tunnel
In file included from factory.cpp:2,
                 from main.cpp:1:
shared.cpp: In function ‘int parse_protocol_tag(char*)’:
shared.cpp:364:14: error: ‘tolower’ was not declared in this scope
  364 |         *c = tolower(*c);
      |              ^~~~~~~

This pull request add the missing include of ctype.h :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant