Skip to content

Commit

Permalink
solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize
Browse files Browse the repository at this point in the history
  • Loading branch information
gco authored and leahneukirchen committed Jun 20, 2022
1 parent 877569a commit e6813fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mflow.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifdef __sun
#define __EXTENSIONS__ /* to get TIOCGWINSZ */
#endif

#include <sys/ioctl.h>
#include <sys/stat.h>

Expand All @@ -9,6 +13,7 @@
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <termios.h>

#include "blaze822.h"
#include "xpledge.h"
Expand Down
4 changes: 4 additions & 0 deletions mscan.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#endif
#ifdef __sun
#define __EXTENSIONS__ /* to get TIOCGWINSZ */
#endif

#include "xpledge.h"

Expand All @@ -19,6 +22,7 @@
#include <time.h>
#include <unistd.h>
#include <wchar.h>
#include <termios.h>

#include "blaze822.h"
#include "u8decode.h"
Expand Down

0 comments on commit e6813fd

Please sign in to comment.