Skip to content

Commit 52be0eb

Browse files
committed
Fix asm1130 unlink declaration
On non-Windows hosts, include `<unistd.h>` to get the `unlink` function declaration. Fix comes from open-simh PR 523; fixes a build failure for asm1130 with modern C compilers.
1 parent 65e0903 commit 52be0eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

simulators/Ibm1130/utils/asm1130.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
#include <setjmp.h>
147147
#include <time.h>
148148
#include <ctype.h>
149+
#ifndef _WIN32
150+
#include <unistd.h>
151+
#endif
149152
#include "util_io.h"
150153

151154
/********************************************************************************************

0 commit comments

Comments
 (0)