summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgastineau <gastineau@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2014-01-15 14:29:11 +0000
committergastineau <gastineau@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2014-01-15 14:29:11 +0000
commitb51244b237e3d8fa997827718af5df88a05a6cec (patch)
tree30a51f68036314edeb77ea2b51405de6ca643177
parent0c647e5fc27f219cb0c991d6dbeaeb60dc127ed1 (diff)
downloadmpc-b51244b237e3d8fa997827718af5df88a05a6cec.tar.gz
fix _POSIX_C_SOURCE refined
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1412 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/tio_str.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c
index af5a669..26ca8ff 100644
--- a/tests/tio_str.c
+++ b/tests/tio_str.c
@@ -1,6 +1,6 @@
/* tio_str-- Test file for mpc_inp_str and mpc_out_str.
-Copyright (C) 2009, 2011 INRIA
+Copyright (C) 2009, 2014 INRIA
This file is part of GNU MPC.
@@ -21,7 +21,9 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
#include "mpc-tests.h"
#ifdef HAVE_UNISTD_H
+#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 1 /* apparently needed on Darwin */
+#endif
#include <unistd.h> /* for dup, dup2, STDIN_FILENO and STDOUT_FILENO */
#else
#define STDIN_FILENO 0