Make sure we get the definition of OPENSSL_NO_SOCK.

This commit is contained in:
Richard Levitte 2003-03-20 23:18:32 +00:00
parent 7b5a6c7a62
commit 9ba4cc007b
4 changed files with 7 additions and 10 deletions

View File

@ -56,8 +56,6 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#ifndef OPENSSL_NO_SOCK
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
@ -65,6 +63,8 @@
#include "cryptlib.h" #include "cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#ifndef OPENSSL_NO_SOCK
#ifdef OPENSSL_SYS_WIN16 #ifdef OPENSSL_SYS_WIN16
#define SOCKET_PROTOCOL 0 /* more microsoft stupidity */ #define SOCKET_PROTOCOL 0 /* more microsoft stupidity */
#else #else

View File

@ -56,14 +56,14 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#ifndef OPENSSL_NO_SOCK
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#ifndef OPENSSL_NO_SOCK
#ifdef OPENSSL_SYS_WIN16 #ifdef OPENSSL_SYS_WIN16
#define SOCKET_PROTOCOL 0 /* more microsoft stupidity */ #define SOCKET_PROTOCOL 0 /* more microsoft stupidity */
#else #else

View File

@ -56,14 +56,14 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#ifndef OPENSSL_NO_SOCK
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#ifndef OPENSSL_NO_SOCK
#ifdef OPENSSL_SYS_WIN16 #ifdef OPENSSL_SYS_WIN16
#define SOCKET_PROTOCOL 0 /* more microsoft stupidity */ #define SOCKET_PROTOCOL 0 /* more microsoft stupidity */
#else #else

View File

@ -56,8 +56,6 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#ifndef OPENSSL_NO_SOCK
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
@ -279,7 +277,7 @@ int BIO_sock_non_fatal_error(int err)
#endif #endif
#ifdef EAGAIN #ifdef EAGAIN
#if EWOULDBLOCK != EAGAIN # if EWOULDBLOCK != EAGAIN
case EAGAIN: case EAGAIN:
# endif # endif
#endif #endif
@ -302,4 +300,3 @@ int BIO_sock_non_fatal_error(int err)
} }
return(0); return(0);
} }
#endif