[gmime] more fixes for windows build
- From: Jeffrey Stedfast <fejj src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gmime] more fixes for windows build
- Date: Sun, 20 Sep 2009 02:23:19 +0000 (UTC)
commit fa47cb7799425e1a776311e6df53642bb1ba2102
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sat Sep 19 22:24:05 2009 -0400
more fixes for windows build
build/vs2008/unistd.h | 2 ++
tests/test-cat.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/build/vs2008/unistd.h b/build/vs2008/unistd.h
index fe4a90e..2b7d1ac 100644
--- a/build/vs2008/unistd.h
+++ b/build/vs2008/unistd.h
@@ -11,6 +11,8 @@
#define read(fd,buf,n) _read(fd,buf,n)
#define write(fd,buf,n) _write(fd,buf,n)
#define lseek(fd,offset,whence) _lseek(fd,offset,whence)
+#define fdopen(fd,mode) _fdopen(fd,mode)
+#define unlink(path) _unlink(path)
#define dup(fd) _dup(fd)
#define getpid() _getpid()
diff --git a/tests/test-cat.c b/tests/test-cat.c
index 2f0baa5..030a41a 100644
--- a/tests/test-cat.c
+++ b/tests/test-cat.c
@@ -64,7 +64,7 @@ random_whole_stream (const char *datadir, char **filename)
g_mkdir_with_parents (datadir, 0755);
- snprintf (buf, sizeof (buf), "%s%cstream.%u", datadir, G_DIR_SEPARATOR, getpid ());
+ g_snprintf (buf, sizeof (buf), "%s%cstream.%u", datadir, G_DIR_SEPARATOR, getpid ());
if ((fd = open (buf, O_CREAT | O_TRUNC | O_RDWR, 0666)) == -1) {
fprintf (stderr, "Error: Cannot create `%s': %s\n", buf, g_strerror (errno));
exit (EXIT_FAILURE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]