fix ifdef typo

pull/1290/head v0.7.2-rc2
flightlessmango 4 weeks ago
parent 325498d1d6
commit 94449aa324

@ -2,7 +2,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <cstring>
#ifdef __LINUX__
#ifdef __linux__
#include <sys/wait.h>
#endif
#include <string>
@ -14,7 +14,7 @@ private:
int from_shell[2];
pid_t shell_pid;
#ifdef __LINUX__
#ifdef __linux__
void setNonBlocking(int fd) {
int flags = fcntl(fd, F_GETFL, 0);
fcntl(fd, F_SETFL, flags | O_NONBLOCK);

Loading…
Cancel
Save