summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-08-30 09:53:10 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-08-30 09:53:10 +0000
commit3204b9fc921f4f8ab659b7dc0902b3b3f6fab527 (patch)
tree1e2bd52d6638e3c8c79ab7f5a5896c355da967cf
parent5797bfd98bfa006264dcc66274996532a68a4472 (diff)
downloadmpc-3204b9fc921f4f8ab659b7dc0902b3b3f6fab527.tar.gz
tio_str.c: add define so stdlib.h behaves well on darwin
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1033 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/tio_str.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c
index d0f80ca..e86bca7 100644
--- a/tests/tio_str.c
+++ b/tests/tio_str.c
@@ -23,6 +23,7 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
#include "mpc-tests.h"
#ifdef HAVE_UNISTD_H
+#define _POSIX_C_SOURCE /* apparently needed on Darwin */
#include <unistd.h> /* for dup, dup2, STDIN_FILENO and STDOUT_FILENO */
#else
#define STDIN_FILENO 0