error -> errno

error_proto -> EPROTO
master
sanjiyan 24 years ago
parent 552b13e44e
commit 8a09e437cc

@ -6,7 +6,7 @@
#include "byte.h" #include "byte.h"
#include "haveip6.h" #include "haveip6.h"
#include "ip6.h" #include "ip6.h"
#include "error.h" #include "errno.h"
#ifndef IPV6_ADD_MEMBERSHIP #ifndef IPV6_ADD_MEMBERSHIP
#ifdef IPV6_JOIN_GROUP #ifdef IPV6_JOIN_GROUP
@ -32,7 +32,7 @@ int socket_mcjoin6(int s,const char ip[16],int interface)
#endif #endif
return setsockopt(s,IPPROTO_IPV6,IPV6_ADD_MEMBERSHIP,&opt,sizeof opt); return setsockopt(s,IPPROTO_IPV6,IPV6_ADD_MEMBERSHIP,&opt,sizeof opt);
#else #else
errno=error_proto; errno=EPROTO;
return -1; return -1;
#endif #endif
} }

@ -5,7 +5,7 @@
#include "socket.h" #include "socket.h"
#include "byte.h" #include "byte.h"
#include "haveip6.h" #include "haveip6.h"
#include "error.h" #include "errno.h"
#include "ip6.h" #include "ip6.h"
#ifndef IPV6_DROP_MEMBERSHIP #ifndef IPV6_DROP_MEMBERSHIP

Loading…
Cancel
Save