diff options
author | JP Rosevear <jpr@ximian.com> | 2002-02-26 05:00:16 +0000 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-02-26 05:00:16 +0000 |
commit | 9c2f98882f69d23a1ed1708969c5fb5e73fbdde7 (patch) | |
tree | 98ad85c1a9fa1199696a43efb79c2f99e788e273 | |
parent | e0ac0a7af23014b1e93000d90f8bf32ed6b45b14 (diff) | |
download | libsoup-9c2f98882f69d23a1ed1708969c5fb5e73fbdde7.tar.gz |
apparently some platforms don't define INADDR_NONE either
2002-02-25 JP Rosevear <jpr@ximian.com>
* src/libsoup/soup-socket-unix.c: apparently some platforms don't
define INADDR_NONE either
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libsoup/soup-socket-unix.c | 4 | ||||
-rw-r--r-- | libsoup/soup-socket.c | 1 |
3 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2002-02-25 JP Rosevear <jpr@ximian.com> + * src/libsoup/soup-socket-unix.c: apparently some platforms don't + define INADDR_NONE either + +2002-02-25 JP Rosevear <jpr@ximian.com> + * src/soup-httpd/Makefile.am: add popt cflags to includes * src/libsoup/soup-socket.c: apparently INET_ADDRSTRLEN is not diff --git a/libsoup/soup-socket-unix.c b/libsoup/soup-socket-unix.c index 6cb5aab2..a875dbb8 100644 --- a/libsoup/soup-socket-unix.c +++ b/libsoup/soup-socket-unix.c @@ -73,6 +73,10 @@ #define socklen_t size_t #endif +#ifndef INADDR_NONE +#define INADDR_NONE -1 +#endif + /* * Maintains a list of all currently valid SoupAddresses or active * SoupAddressState lookup requests. diff --git a/libsoup/soup-socket.c b/libsoup/soup-socket.c index 60d66c6b..0b0c62e8 100644 --- a/libsoup/soup-socket.c +++ b/libsoup/soup-socket.c @@ -15,7 +15,6 @@ #ifdef HAVE_CONFIG_H #include <config.h> #endif - #include <fcntl.h> #include <glib.h> #include <string.h> |