summaryrefslogtreecommitdiff
path: root/tests/tio_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tio_str.c')
-rw-r--r--tests/tio_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c
index e86bca7..e46d887 100644
--- a/tests/tio_str.c
+++ b/tests/tio_str.c
@@ -23,7 +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 */
+#define _POSIX_C_SOURCE 1 /* apparently needed on Darwin */
#include <unistd.h> /* for dup, dup2, STDIN_FILENO and STDOUT_FILENO */
#else
#define STDIN_FILENO 0