Skip to content

Commit

Permalink
Fixed build on more recent distros by including headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hielke Kramer committed Jan 14, 2020
1 parent 4eeb9b2 commit c42cca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions i2c_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>

static inline std::system_error posix_error(const std::string & what)
{
Expand Down
1 change: 1 addition & 0 deletions i2c_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <cstdint>
#include <string>
#include <sys/ioctl.h>

class i2c_bus
{
Expand Down

0 comments on commit c42cca6

Please sign in to comment.