Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Strnlen Compilation problem [COMPILE,CLANG] #22443
Operating system:FreeBSD 11.0-RELEASE-p12
It's compilation problem with filesystem.cpp and #include <string.h> ( I think ), I use FreeBSD clang version 3.8.0. I don't know what exactly is wrong but when try to gmake, I got
src/filesystem.cpp:215:28: error: use of undeclared identifier 'strnlen'
Historically, the freebsd developers have had a bug up their collective asses about strnlen.
I also note that it is not officially a part of the c++ standard, so that exclusion is technically correct.