Skip to content

Commit

Permalink
Add missing fcntl.h includes
Browse files Browse the repository at this point in the history
Required on musl libc (Alpine Linux)
  • Loading branch information
valpackett authored and ammen99 committed Feb 23, 2020
1 parent e564280 commit fdcc040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <cassert>

#include <sys/file.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>

Expand Down
1 change: 1 addition & 0 deletions test/file_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <iostream>
#include "doctest.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/file.h>
#include <iostream>
#include <fstream>
Expand Down

0 comments on commit fdcc040

Please sign in to comment.