*/
#include "client.h"
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
/** \file id.c
* \brief Handling of ID allocation / freeing
if (s->used > 0) return -RSE_INUSE;
- if (s->sockfd >= 0) close(s->sockfd);
+ if (s->sockfd >= 0) evutil_closesocket(s->sockfd);
return 0;
}