diff options
author | Michael Adam <obnox@samba.org> | 2009-04-30 00:35:55 +0200 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-05-06 10:40:48 +1000 |
commit | 08cfdf0d6368a1bf230e60fee42eef78366a07a1 (patch) | |
tree | d62654c68de430bc990e4a630667b0fe58827450 /ctdb/utils | |
parent | d68654ba5e84df3cec6a915998d3848fe92d9270 (diff) | |
download | samba-08cfdf0d6368a1bf230e60fee42eef78366a07a1.tar.gz samba-08cfdf0d6368a1bf230e60fee42eef78366a07a1.tar.xz samba-08cfdf0d6368a1bf230e60fee42eef78366a07a1.zip |
ping_pong: get pread/pwrite prototypes from unistd.h
by defining _XOPEN_SOURCE to be 500 before including headers
Michael
(This used to be ctdb commit 96c79bddf7895e57ccf90f0d250bd08b7c4daf40)
Diffstat (limited to 'ctdb/utils')
-rw-r--r-- | ctdb/utils/ping_pong/ping_pong.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/utils/ping_pong/ping_pong.c b/ctdb/utils/ping_pong/ping_pong.c index 0c2a3b74cb..84e22a37bd 100644 --- a/ctdb/utils/ping_pong/ping_pong.c +++ b/ctdb/utils/ping_pong/ping_pong.c @@ -8,6 +8,8 @@ */ +#define _XOPEN_SOURCE 500 + #include <stdio.h> #include <stdlib.h> #include <sys/time.h> |