lkml.org 
[lkml]   [2005]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 11/16] UML - add a comment explaining pread availability
Date
From
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.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.11/arch/um/drivers/cow_user.c
===================================================================
--- linux-2.6.11.orig/arch/um/drivers/cow_user.c 2005-03-05 12:07:31.000000000 -0500
+++ linux-2.6.11/arch/um/drivers/cow_user.c 2005-03-05 12:19:11.000000000 -0500
@@ -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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.096 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site