Patch from Dave Yeo <dave.r.yeo@gmail.com>.
os_is_windows=no
case "$host" in
- *-*-cygwin|*mingw*|*emx*)
+ *-*-cygwin|*mingw*)
# define this variable for enabling strict exports with libtool; for now, it's supported by Win32 and OS/2
LT_NO_UNDEFINED="-no-undefined"
CPPFLAGS="-D__MSVCRT_VERSION__=0x0601 $CPPFLAGS"
os_is_windows=yes
;;
+ *emx*)
+ LT_NO_UNDEFINED="-no-undefined"
+ ;;
*)
LT_NO_UNDEFINED=
;;
int width = 80;
#ifdef _WIN32
width = win_get_console_width();
+#elif defined __EMX__
+ int s[2];
+ _scrsize (s);
+ width = s[0];
#else
struct winsize w;
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1) width = w.ws_col;