Skip to contentSkip to conversation

UML - add a comment explaining pread availability

PATCH New Jeff Dike 1 participant 1 message Mar 7, 2005 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 11/16 UML - add a comment explaining pread availability

Prompted by Dave Mielke: This adds a comment explaining why we do not define _XOPEN_SOURCE, even though the pread man page says you should.

arch/um/drivers/cow_user.c +3 -0
Index: linux-2.6.11/arch/um/drivers/cow_user.c
===================================================================
@@ -1,6 +1,9 @@
 #include <stddef.h>
 #include <string.h>
 #include <errno.h>
+/* _XOPEN_SOURCE is needed for pread, but we define _GNU_SOURCE, which defines
+ * that.
+ */
 #include <unistd.h>
 #include <byteswap.h>
 #include <sys/time.h>

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel