[Mono-dev] include stdio.h at locking.c [patch]
KISHIMOTO, Makoto
ksmakoto at dd.iij4u.or.jp
Wed May 20 23:48:34 EDT 2009
Hello
At my FreeBSD box, trunk cannot compile.
Error is following.
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../../../mono/mono/io-layer -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../../../mono/libgc/include -DMONO_BINDIR=\""/usr/local/bin"\" -I../../../mono -DGC_FREEBSD_THREADS -DPLATFORM_BSD -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -mno-tls-direct-seg-refs -MT locking.lo -MD -MP -MF .deps/locking.Tpo -c -o locking.lo ../../../mono/mono/io-layer/locking.c
../../../mono/mono/io-layer/locking.c: In function '_wapi_lock_file_region':
../../../mono/mono/io-layer/locking.c:29: error: 'SEEK_SET' undeclared (first use in this function)
../../../mono/mono/io-layer/locking.c:29: error: (Each undeclared identifier is reported only once
../../../mono/mono/io-layer/locking.c:29: error: for each function it appears in.)
../../../mono/mono/io-layer/locking.c: In function '_wapi_unlock_file_region':
../../../mono/mono/io-layer/locking.c:69: error: 'SEEK_SET' undeclared (first use in this function)
Patch.
Index: mono/mono/io-layer/locking.c
===================================================================
--- mono/mono/io-layer/locking.c (revision 134497)
+++ mono/mono/io-layer/locking.c (working copy)
@@ -9,6 +9,7 @@
*/
#include <config.h>
#include <glib.h>
+#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <mono/io-layer/wapi.h>
More information about the Mono-devel-list
mailing list