diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-20 13:40:01 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-20 13:40:01 -0500 |
commit | 750e1c41e97cd9b53da3f6a64938c528951d358b (patch) | |
tree | 5480a3437c939e9672d4f3b025a3a96ed30b179e /src/posix_extras.cc | |
parent | c743c7f8a871e0bff340db732e2a3203c5ae7f17 (diff) |
Include what you use
Diffstat (limited to 'src/posix_extras.cc')
-rw-r--r-- | src/posix_extras.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/posix_extras.cc b/src/posix_extras.cc index 07b459e..6013b9b 100644 --- a/src/posix_extras.cc +++ b/src/posix_extras.cc @@ -12,8 +12,7 @@ // License for the specific language governing permissions and limitations under // the License. -#define _BSD_SOURCE 1 -#define _POSIX_C_SOURCE 201502L +#define _XOPEN_SOURCE 700 #undef _GNU_SOURCE #include "posix_extras.h" @@ -21,6 +20,7 @@ #include <cerrno> #include <experimental/optional> #include <stdexcept> +#include <string> #include <vector> #include <dirent.h> |