summaryrefslogtreecommitdiffstats
path: root/apps/s_socket.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-02-20 17:37:02 +0000
committerRichard Levitte <levitte@openssl.org>2001-02-20 17:37:02 +0000
commit02cc82ff8adbb43918720796c97df36ac0579323 (patch)
tree0d36bbdeb1a4d73fa5e226254496066ac45dfa1a /apps/s_socket.c
parent38f3b3e29c89a4951d579f1bbb0106225fd4b038 (diff)
I forgot there was a reason why the inclusions and definition of u_int
was made in a certain sequence. This change restores the earlier "chain of command".
Diffstat (limited to 'apps/s_socket.c')
-rw-r--r--apps/s_socket.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c
index adaeef646a..bd499d020c 100644
--- a/apps/s_socket.c
+++ b/apps/s_socket.c
@@ -62,13 +62,6 @@
#include <errno.h>
#include <signal.h>
-#define USE_SOCKETS
-#define NON_MAIN
-#include "apps.h"
-#undef USE_SOCKETS
-#undef NON_MAIN
-#include "s_apps.h"
-#include <openssl/ssl.h>
#include <openssl/e_os2.h>
/* With IPv6, it looks like Digital has mixed up the proper order of
@@ -80,6 +73,14 @@
typedef unsigned int u_int;
#endif
+#define USE_SOCKETS
+#define NON_MAIN
+#include "apps.h"
+#undef USE_SOCKETS
+#undef NON_MAIN
+#include "s_apps.h"
+#include <openssl/ssl.h>
+
static struct hostent *GetHostByName(char *name);
#ifdef OPENSSL_SYS_WINDOWS
static void sock_cleanup(void);