I just built uml_utilities-20040406 and got the following warning:
cow.c: In function `file_reader':
cow.c:233: warning: implicit declaration of function `pread'
The man page for pread(2) says:
SYNOPSIS
#define _XOPEN_SOURCE 500
#include <unistd.h>
ssize_t pread(int fd, void *buf, size_t count, off_t offset);
The following patch adds the required #define and indeed makes the warning go
away:
--- tools/moo/cow.c.orig 2003-09-03 12:35:07.000000000 -0400
+++ tools/moo/cow.c 2004-12-26 19:24:40.113998548 -0500
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 500 /* to pick up pread() in unistd.h */
#include <stddef.h>
#include <string.h>
#include <errno.h>
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell.
http://FamilyRadio.com/ | http://Mielke.cc/bible/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user