diff options
Diffstat (limited to 'ext/socket/sockport.h')
-rw-r--r-- | ext/socket/sockport.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h index 1639fcf828..e3750816c6 100644 --- a/ext/socket/sockport.h +++ b/ext/socket/sockport.h @@ -40,4 +40,9 @@ # define SET_SIN_LEN(si,len) #endif +#ifndef IN_MULTICAST +# define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000) +# define IN_MULTICAST(i) IN_CLASSD(i) +#endif + #endif |