]> jfr.im git - solanum.git/blobdiff - librb/include/commio-int.h
MbedTLS: Adjust ciphersuite order and update documentation
[solanum.git] / librb / include / commio-int.h
index f89f499fb12d6ada74d99a54b0b9a54a80326eb4..cd573fef207c85eb1f2dab7ad45d7955ab310683 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
  *  USA
  *
- *  $Id: commio.h 24059 2007-07-24 17:25:41Z androsyn $
  */
 
 #ifndef _COMMIO_INT_H
 
 #define FD_DESC_SZ 128         /* hostlen + comment */
 
-
-#ifdef _WIN32
-#define rb_get_errno() do { errno = WSAGetLastError(); WSASetLastError(errno); } while(0)
-typedef SOCKET rb_platform_fd_t;
-#else
-#define rb_get_errno()
-typedef int rb_platform_fd_t;
-#endif
-
 #define rb_hash_fd(x) ((x ^ (x >> RB_FD_HASH_BITS) ^ (x >> (RB_FD_HASH_BITS * 2))) & RB_FD_HASH_MASK)
 
 #ifdef HAVE_WRITEV
@@ -97,6 +87,9 @@ struct acceptdata
 #define SetFDOpen(F)   (F->flags |= FLAG_OPEN)
 #define ClearFDOpen(F) (F->flags &= ~FLAG_OPEN)
 
+#if !defined(SHUT_RDWR) && defined(_WIN32)
+# define SHUT_RDWR SD_BOTH
+#endif
 
 struct _fde
 {