Commits

Anonymous committed 839a387

Aled's fix for linux vs bsd

  • Participants
  • Parent commits 09a65c5

Comments (0)

Files changed (2)

 
 # flags
 # use for BSDs
-#CPPFLAGS = -DVERSION=\"${VERSION}\" -D_GNU_SOURCE
-CPPFLAGS = -DVERSION=\"${VERSION}\" -D_GNU_SOURCE -DLINUX
+CPPFLAGS = -DVERSION=\"${VERSION}\" -D_GNU_SOURCE
 CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
 LDFLAGS = -s ${LIBS}
 
 #include <sys/select.h>
 #include <sys/wait.h>
 
-#ifdef LINUX
+#ifdef __linux__
  #include <pty.h>
-#else  // LINUX
+#else  // __linux__
  #include <util.h>
-#endif // LINUX
+#endif // __linux__
 
 #define STDIN  0
 #define STDOUT 1