On 04/28/13 02:38 am, Erik de Castro Lopo wrote:
Hi all,

I have tagged 1.3.0pre4 in git and provided a tarball here:

     http://downloads.xiph.org/releases/flac/beta/flac-1.3.0pre4.tar.xz

On OS/2 compile dies here,
  CC     win_utf8_io/win_utf8_io.lo
win_utf8_io/win_utf8_io.c:13:75: error: windows.h: No such file or directory
...
with lots of more errors.
The problem is in configure.ac. I don't have new enough autotools to test properly but applying this directly to configure fixes it.
The build also dies here,
  CC     utils.o
utils.c: In function 'get_console_width':
utils.c:177: error: storage size of 'w' isn't known
utils.c:178: error: 'TIOCGWINSZ' undeclared (first use in this function)
utils.c:178: error: (Each undeclared identifier is reported only once
utils.c:178: error: for each function it appears in.)
utils.c:177: warning: unused variable 'w'

possible solution that returns a VIO consoles width attached.
Dave
--- configure.ac.orig	2013-04-28 17:03:16.000000000 -0700
+++ configure.ac	2013-04-28 17:06:08.000000000 -0700
@@ -126,12 +126,15 @@
 
 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=
 		;;
--- utils.c.bak	2013-04-28 19:00:20.000000000 -0700
+++ utils.c	2013-04-28 19:05:24.000000000 -0700
@@ -173,6 +173,10 @@
 	int width = 80;
 #ifdef _WIN32
 	width = win_get_console_width();
+#elif __EMX__
+        int s[2];
+        _scrsize (s);
+        width = s[0]; 
 #else
 	struct winsize w;
 	if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1)	width = w.ws_col;
_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to