/[lwip]/contrib/ports/unix/netif/sio.c
ViewVC logotype

Diff of /contrib/ports/unix/netif/sio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by marcbou, Fri Jun 27 19:37:16 2003 UTC revision 1.6 by christiaans, Mon Oct 10 07:25:35 2005 UTC
# Line 20  Line 20 
20  #undef NTOHS  #undef NTOHS
21    
22  #include <stdlib.h>  #include <stdlib.h>
23    #include <util.h>
24  #include <termios.h>  #include <termios.h>
25  #include <stdio.h>  #include <stdio.h>
26  #include <unistd.h>  #include <unistd.h>
# Line 28  Line 29 
29  #include <sys/signal.h>  #include <sys/signal.h>
30  #include <sys/types.h>  #include <sys/types.h>
31    
32  #if PPP_SUPPORT  #if PPP_SUPPORT && defined(linux)
33  #include <pty.h>  #include <pty.h>
34  #endif  #endif
35    
# Line 295  sio_status_t * sio_open( int devnum ) Line 296  sio_status_t * sio_open( int devnum )
296          fifoInit( &siostate->myfifo );          fifoInit( &siostate->myfifo );
297  #endif /* ! PPP_SUPPORT */  #endif /* ! PPP_SUPPORT */
298    
299          sprintf( dev, "/dev/ttyS%d", devnum );          snprintf( dev, sizeof(dev), "/dev/ttyS%d", devnum );
300    
301          if ( (devnum == 1) || (devnum == 0) )          if ( (devnum == 1) || (devnum == 0) )
302          {          {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26