git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fce8516
)
ping_pong: get pread/pwrite prototypes from unistd.h
author
Michael Adam
<obnox@samba.org>
Wed, 29 Apr 2009 22:35:55 +0000
(
00:35
+0200)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 6 May 2009 00:40:48 +0000
(10:40 +1000)
by defining _XOPEN_SOURCE to be 500 before including headers
Michael
utils/ping_pong/ping_pong.c
patch
|
blob
|
history
diff --git
a/utils/ping_pong/ping_pong.c
b/utils/ping_pong/ping_pong.c
index 0c2a3b74cbd9c4c3ebc1e7f30ee646c10628855d..84e22a37bd297dcd9b78c1d43afc05ac96793780 100644
(file)
--- a/
utils/ping_pong/ping_pong.c
+++ b/
utils/ping_pong/ping_pong.c
@@
-8,6
+8,8
@@
*/
+#define _XOPEN_SOURCE 500
+
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>