diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2013-11-05 16:34:01 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2013-11-05 16:34:01 +0000 |
commit | 3fe1cb888d03c8222a498dbd239b3ab377b3cc57 (patch) | |
tree | 41f35608a47c09b8ca8f648ff976b7a640fcd434 | |
parent | c2a3d4362172e1124fe555a47146fbda815a4bdb (diff) | |
download | mpc-3fe1cb888d03c8222a498dbd239b3ab377b3cc57.tar.gz |
[tests/] Do not redefine _POSIX_C_SOURCE when it already exists.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/branches/benchs_tests@1307 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r-- | tests/tio_str.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c index af5a669..b148b7b 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, 2011, 2013 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 +#if !defined _POSIX_C_SOURCE #define _POSIX_C_SOURCE 1 /* apparently needed on Darwin */ +#endif /* _POSIX_C_SOURCE */ #include <unistd.h> /* for dup, dup2, STDIN_FILENO and STDOUT_FILENO */ #else #define STDIN_FILENO 0 |