From 29ba946981db86e2a665efa11b59ef9254240888 Mon Sep 17 00:00:00 2001 From: kvigor Date: Tue, 3 Oct 2000 05:52:14 +0000 Subject: [PATCH] undo unistd.h; restores Cygwin & BC++ functionality git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@444 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- as/mcs51/lkmain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/as/mcs51/lkmain.c b/as/mcs51/lkmain.c index 6de6fb99..d7e04197 100644 --- a/as/mcs51/lkmain.c +++ b/as/mcs51/lkmain.c @@ -17,9 +17,12 @@ #include #include #include -#include #include "aslink.h" +/* yuck - but including unistd.h causes problems on Cygwin by redefining + * addr_t. + */ +extern int unlink(const char *); /*)Module lkmain.c * -- 2.47.2