summaryrefslogtreecommitdiff
path: root/libgfortran/runtime/pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/runtime/pause.c')
-rw-r--r--libgfortran/runtime/pause.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/runtime/pause.c b/libgfortran/runtime/pause.c
index ad69c95ca0f..f193314634e 100644
--- a/libgfortran/runtime/pause.c
+++ b/libgfortran/runtime/pause.c
@@ -25,7 +25,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
#include <string.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
static void
do_pause (void)