On Fri, 2008-12-26 at 01:29 -0800, David Liontooth wrote:

> In file included from platform_posix.c:22:
> platform.h:36: error: syntax error before 'plat_read'
> platform.h:36: warning: type defaults to 'int' in declaration of
> 'plat_read'
> platform.h:36: warning: data definition has no type or storage class
> platform.h:37: error: syntax error before 'plat_write'
> platform.h:37: warning: type defaults to 'int' in declaration of 
> 'plat_write'
> platform.h:37: warning: data definition has no type or storage class
> platform_posix.c:50: error: conflicting types for 'plat_read'
> platform.h:36: error: previous declaration of 'plat_read' was here
> platform_posix.c:73: error: conflicting types for 'plat_write'
> platform.h:37: error: previous declaration of 'plat_write' was here
> make[2]: *** [platform_posix.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> Error: Status 1 encountered during processing.

Hi and happy holydays.

Please try with the attached patch (will be of course in 1.1.0 final)

Bests,

-- 
Francesco Romani // Ikitt
http://fromani.exit1.org  ::: transcode homepage
http://tcforge.berlios.de ::: transcode experimental forge
Index: platform.h
===================================================================
RCS file: /cvstc/transcode/avilib/platform.h,v
retrieving revision 1.2.2.1
diff -u -u -r1.2.2.1 platform.h
--- platform.h	11 Nov 2008 19:44:02 -0000	1.2.2.1
+++ platform.h	26 Dec 2008 12:18:23 -0000
@@ -23,9 +23,20 @@
 #ifndef PLATFORM_H
 #define PLATFORM_H
 
+#include "config.h"
+
+#ifdef OS_DARWIN
+#include <sys/uio.h>
+#endif
+
+#include <sys/types.h>
 #include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
 #include <stdint.h>
 #include <stdlib.h>
+#include <stdio.h>
+
 
 /*************************************************************************/
 /* POSIX-like I/O handling                                               */
Index: platform_posix.c
===================================================================
RCS file: /cvstc/transcode/avilib/platform_posix.c,v
retrieving revision 1.2.2.1
diff -u -u -r1.2.2.1 platform_posix.c
--- platform_posix.c	11 Nov 2008 19:44:02 -0000	1.2.2.1
+++ platform_posix.c	26 Dec 2008 12:18:23 -0000
@@ -21,14 +21,11 @@
 
 #include "platform.h"
 
-#include <fcntl.h>
-#include <unistd.h>
-
 #include <string.h>
 #include <stdarg.h>
-#include <stdio.h>
 #include <errno.h>
 
+
 /*************************************************************************/
 /* I/O is straightforward.                                               */
 /*************************************************************************/
Index: platform_tc.c
===================================================================
RCS file: /cvstc/transcode/avilib/platform_tc.c,v
retrieving revision 1.2.2.1
diff -u -u -r1.2.2.1 platform_tc.c
--- platform_tc.c	11 Nov 2008 19:44:02 -0000	1.2.2.1
+++ platform_tc.c	26 Dec 2008 12:18:23 -0000
@@ -20,15 +20,12 @@
 
 
 #include "platform.h"
+
 #include "libtc/xio.h"
 #include "libtc/libtc.h"
 
-#include <fcntl.h>
-#include <unistd.h>
-
 #include <string.h>
 #include <stdarg.h>
-#include <stdio.h>
 #include <errno.h>
 
 

Reply via email to