changeset 28399:28406057a982

Convert HAVE_CLOSESOCKET and HAVE_SOCKLEN_T into 0/1 definitions.
author diego
date Sun, 01 Feb 2009 13:16:46 +0000
parents 2bbf8aa094e2
children 9202b9245819
files configure stream/network.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Feb 01 13:13:15 2009 +0000
+++ b/configure	Sun Feb 01 13:16:46 2009 +0000
@@ -2982,7 +2982,7 @@
 if test "$_socklen_t" = yes ; then
   _def_socklen_t='#define HAVE_SOCKLEN_T 1'
 else
-  _def_socklen_t='#undef HAVE_SOCKLEN_T'
+  _def_socklen_t='#define HAVE_SOCKLEN_T 0'
 fi
 echores "$_socklen_t"
 
@@ -2997,7 +2997,7 @@
 if test "$_closesocket" = yes ; then
   _def_closesocket='#define HAVE_CLOSESOCKET 1'
 else
-  _def_closesocket='#undef HAVE_CLOSESOCKET'
+  _def_closesocket='#define HAVE_CLOSESOCKET 0'
 fi
 echores "$_closesocket"
 
--- a/stream/network.h	Sun Feb 01 13:13:15 2009 +0000
+++ b/stream/network.h	Sun Feb 01 13:16:46 2009 +0000
@@ -22,10 +22,10 @@
 #include "url.h"
 #include "http.h"
 
-#ifndef HAVE_CLOSESOCKET
+#if !HAVE_CLOSESOCKET
 #define closesocket close
 #endif
-#ifndef HAVE_SOCKLEN_T
+#if !HAVE_SOCKLEN_T
 typedef int socklen_t;
 #endif