diff options
author | Luke Howard <lukeh@padl.com> | 2011-11-14 16:59:55 +1100 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2011-11-14 16:59:55 +1100 |
commit | ac17a556bd50969c8157d50761449b702afa4af8 (patch) | |
tree | 61900a1a4746f20c2debae948322ea07330a2d44 /lib/radius/id.c | |
parent | d6e790ddd52c0aa09af6e515d79d3a676c01fdad (diff) |
port new RADIUS library to Windows
Conflicts:
lib/configure.ac
lib/include/radsec/radsec.h
lib/radius/client.h
Diffstat (limited to 'lib/radius/id.c')
-rw-r--r-- | lib/radius/id.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/radius/id.c b/lib/radius/id.c index 2b956f2..4ccd032 100644 --- a/lib/radius/id.c +++ b/lib/radius/id.c @@ -26,7 +26,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "client.h" + +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif /** \file id.c * \brief Handling of ID allocation / freeing @@ -141,7 +144,7 @@ int nr_server_close(const nr_server_t *s) if (s->used > 0) return -RSE_INUSE; - if (s->sockfd >= 0) close(s->sockfd); + if (s->sockfd >= 0) evutil_closesocket(s->sockfd); return 0; } |