mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Use INADDR_BROADCAST if INADDR_NONE isn't defined.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@300 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c583a08c53
commit
0a1282765e
1 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,10 @@
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "net-internal.h"
|
#include "net-internal.h"
|
||||||
|
|
||||||
|
#ifndef INADDR_NONE
|
||||||
|
#define INADDR_NONE INADDR_BROADCAST
|
||||||
|
#endif
|
||||||
|
|
||||||
union sockaddr_union {
|
union sockaddr_union {
|
||||||
struct sockaddr sa;
|
struct sockaddr sa;
|
||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue