Skip to content

Commit

Permalink
Fix missing include
Browse files Browse the repository at this point in the history
Fixes compile with libc++ on linux:

```
In file included from ../tests/cc/test_array_table.cc:17:
In file included from ../src/cc/api/BPF.h:24:
../src/cc/api/BPFTable.h:118:71: error: use of undeclared identifier 'errno'
      return StatusTuple(-1, "Error getting value: %s", std::strerror(errno));
```
  • Loading branch information
springmeyer committed Feb 5, 2018
1 parent 277657e commit 45d1f4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cc/api/BPFTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include <cstring>
#include <errno.h>
#include <sys/epoll.h>
#include <exception>
#include <map>
Expand Down

0 comments on commit 45d1f4d

Please sign in to comment.