mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-15 05:44:58 +00:00
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.
This commit is contained in:
@@ -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
|
** 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.
|
** Public License - see the file COPYING.LIB in the Mercury distribution.
|
||||||
*/
|
*/
|
||||||
@@ -14,7 +14,11 @@
|
|||||||
#include "mercury_runtime_util.h"
|
#include "mercury_runtime_util.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
#ifdef MR_HAVE_UNISTD_H
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifndef MR_HAVE_STRERROR
|
#ifndef MR_HAVE_STRERROR
|
||||||
|
|||||||
Reference in New Issue
Block a user