From efecdba25bbb23a7dec47060456cce68247cf044 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Tue, 22 Oct 2002 13:55:56 +0000 Subject: [PATCH] Add a missing MR_HAVE_UNISTD_H around #include of unistd.h. Estimated hours taken: 0.25 Branches: main runtime/mercury_runtime_util.c: Add a missing MR_HAVE_UNISTD_H around #include of unistd.h. --- runtime/mercury_runtime_util.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/runtime/mercury_runtime_util.c b/runtime/mercury_runtime_util.c index 5e9b55756..301d45d54 100644 --- a/runtime/mercury_runtime_util.c +++ b/runtime/mercury_runtime_util.c @@ -1,5 +1,5 @@ /* -** Copyright (C) 2001 The University of Melbourne. +** Copyright (C) 2001-2002 The University of Melbourne. ** This file may only be copied under the terms of the GNU Library General ** Public License - see the file COPYING.LIB in the Mercury distribution. */ @@ -14,7 +14,11 @@ #include "mercury_runtime_util.h" #include -#include + +#ifdef MR_HAVE_UNISTD_H + #include +#endif + #include #ifndef MR_HAVE_STRERROR