summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-06 22:46:51 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2007-07-06 22:46:51 (GMT)
commitdf8c5f9144f68d2ccd0d532ed9f5860c970e0116 (patch)
treeb1366d7c2f0a85f28242cdf6882d0225818aff78
parentcaba1e82891eb4b419b1ac9fef6e774104acafe2 (diff)
downloadlib-master.zip
lib-master.tar.gz
lib-master.tar.bz2
lib-master.tar.xz
pread() and pwrite() need feature enable macros (sigh)HEADmaster
-rw-r--r--xpread.c1
-rw-r--r--xpwrite.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/xpread.c b/xpread.c
index 8cea02e..6fa9cfc 100644
--- a/xpread.c
+++ b/xpread.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 500 /* Needed for pread() */
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/xpwrite.c b/xpwrite.c
index 46012b3..c6fa77a 100644
--- a/xpwrite.c
+++ b/xpwrite.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 500 /* Needed for pwrite() */
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>