Skip to content

Commit

Permalink
fix ifdef typo
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed Apr 4, 2024
1 parent 325498d commit 94449aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <cstring>
#ifdef __LINUX__
#ifdef __linux__
#include <sys/wait.h>
#endif
#include <string>
Expand All @@ -14,7 +14,7 @@ class Shell {
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);
Expand Down

0 comments on commit 94449aa

Please sign in to comment.