Support for FreeBSD

This commit is contained in:
Hajimu UMEMOTO
2016-05-16 14:46:39 +09:00
parent 3a35dee94f
commit a359d1bbd4
10 changed files with 18 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ int main() {
return 2;
}
#if not defined(__APPLE__)
#if !defined(__APPLE__) && !defined(__FreeBSD__)
if (!addprocinfo("/proc/net/tcp")) {
std::cerr << "Failed to load /proc/net/tcp" << std::endl;
return 3;