--- embedtools/src/pceng.c 2011/10/24 13:41:48 1.1.2.10 +++ embedtools/src/pceng.c 2011/10/24 20:24:16 1.1.2.11 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: pceng.c,v 1.1.2.10 2011/10/24 13:41:48 misho Exp $ + * $Id: pceng.c,v 1.1.2.11 2011/10/24 20:24:16 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -96,7 +96,7 @@ main(int argc, char **argv) char ch, ledno, *pos; int i, ret = 0, mode = 1; struct sigaction sact; -#ifdef HAVE_IO +#ifdef __FreeBSD__ int io; #endif @@ -124,7 +124,7 @@ main(int argc, char **argv) else openlog("pceng", LOG_CONS | LOG_PID | LOG_PERROR, LOG_USER); -#ifdef HAVE_IO +#ifdef __FreeBSD__ io = open(_PATH_DEVIO, O_RDONLY); if (io == -1) { printf("Error:: in open dev %s #%d - %s\n", _PATH_DEVIO, errno, strerror(errno)); @@ -191,7 +191,7 @@ main(int argc, char **argv) end: UnloadConfig(&cfg); -#ifdef HAVE_IO +#ifdef __FreeBSD__ if (io > 2) close(io); #endif