[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNOKKI WITH SUN SOLARIS 8
From: |
Pawel Kot |
Subject: |
Re: GNOKKI WITH SUN SOLARIS 8 |
Date: |
Tue, 29 Oct 2002 17:21:20 +0100 |
Hi,
Replace:
gn_error serial_nreceived(int fd, int *n)
{
if (ioctl(fd, FIONREAD, n)) {
dprintf("serial_nreceived: cannot get the received data
size\n");
return GN_ERR_INTERNALERROR;
}
return GN_ERR_NONE;
}
with:
gn_error serial_nreceived(int fd, int *n)
{
#ifndef __unices__ || WIN32
if (ioctl(fd, FIONREAD, n)) {
dprintf("serial_nreceived: cannot get the received data
size\n");
return GN_ERR_INTERNALERROR;
}
#endif
return GN_ERR_NONE;
}
pkot