ping_pong: get pread/pwrite prototypes from unistd.h
authorMichael Adam <obnox@samba.org>
Wed, 29 Apr 2009 22:35:55 +0000 (00:35 +0200)
committerRonnie 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

index 0c2a3b74cbd9c4c3ebc1e7f30ee646c10628855d..84e22a37bd297dcd9b78c1d43afc05ac96793780 100644 (file)
@@ -8,6 +8,8 @@
 
 */
 
+#define _XOPEN_SOURCE 500
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>