git » libjio » commit 338b0e7

On some (most?) systems, you have to define XOPEN_SOURCE to 500 if you want to get definitions for pread/pwrite (even tho the linking works well anyway).

author Alberto Bertogli
2004-05-04 12:48:09 UTC
committer Alberto Bertogli
2007-07-15 12:44:26 UTC
parent 1ec50c9ee455c68c48513bd7fbf322d8af3515d0

On some (most?) systems, you have to define XOPEN_SOURCE to 500 if you want to get definitions for pread/pwrite (even tho the linking works well anyway).

On some (most?) systems, you have to define XOPEN_SOURCE to 500 if you want to
get definitions for pread/pwrite (even tho the linking works well anyway).

This patch defines it to avoid the unnecesary warning.

Make.conf +2 -1

diff --git a/Make.conf b/Make.conf
index 2424675..4c389ad 100644
--- a/Make.conf
+++ b/Make.conf
@@ -4,7 +4,8 @@ VERSION="0.13"
 CC = gcc
 CFLAGS += -Wall -O6 \
 	-D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
-	-D_LFS_LARGEFILE=1 -D_LFS64_LARGEFILE=1
+	-D_LFS_LARGEFILE=1 -D_LFS64_LARGEFILE=1 \
+	-D_XOPEN_SOURCE=500
 
 ifdef DEBUG
 CFLAGS += -g -pg -fprofile-arcs -ftest-coverage