Update of /cvsroot/linux-decnet/dnprogs/libdnet
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20990/libdnet
Modified Files:
getnodename.c getexecdev.c dnet_conn.c dnet_addr.c
Log Message:
fixed includes and errno codes (handle only existing ones)
Index: getnodename.c
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/getnodename.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** getnodename.c 27 Sep 2008 09:28:39 -0000 1.5
--- getnodename.c 5 Jul 2010 22:28:44 -0000 1.6
***************
*** 21,25 ****
#include <stdio.h>
#include <string.h>
! #include <sys/errno.h>
#include <unistd.h>
--- 21,25 ----
#include <stdio.h>
#include <string.h>
! #include <errno.h>
#include <unistd.h>
Index: getexecdev.c
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/getexecdev.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** getexecdev.c 27 Sep 2008 09:28:39 -0000 1.2
--- getexecdev.c 5 Jul 2010 22:28:44 -0000 1.3
***************
*** 20,24 ****
#include <sys/socket.h>
#include <sys/types.h>
! #include <sys/errno.h>
#include <string.h>
#include <stdlib.h>
--- 20,24 ----
#include <sys/socket.h>
#include <sys/types.h>
! #include <errno.h>
#include <string.h>
#include <stdlib.h>
Index: dnet_conn.c
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/dnet_conn.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** dnet_conn.c 4 Oct 2008 18:16:14 -0000 1.9
--- dnet_conn.c 5 Jul 2010 22:28:44 -0000 1.10
***************
*** 21,24 ****
--- 21,25 ----
#include <sys/socket.h>
#include <sys/types.h>
+ #include <sys/time.h>
#include <string.h>
#include <stdlib.h>
***************
*** 169,173 ****
--- 170,180 ----
return -1;
+ #ifdef ESOCKTNOSUPPORT
errno = ESOCKTNOSUPPORT;
+ #elif defined(EPROTONOSUPPORT)
+ errno = EPROTONOSUPPORT;
+ #else
+ errno = ENOSYS;
+ #endif
if (type != SOCK_SEQPACKET && type != SOCK_STREAM)
return -1;
Index: dnet_addr.c
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/dnet_addr.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** dnet_addr.c 27 Sep 2008 09:28:39 -0000 1.3
--- dnet_addr.c 5 Jul 2010 22:28:44 -0000 1.4
***************
*** 20,24 ****
#include <sys/socket.h>
#include <sys/types.h>
! #include <sys/errno.h>
#include <string.h>
#include <stdlib.h>
--- 20,24 ----
#include <sys/socket.h>
#include <sys/types.h>
! #include <errno.h>
#include <string.h>
#include <stdlib.h>
|