summaryrefslogtreecommitdiffstats
path: root/apps/s_socket.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-02-20 13:11:54 +0000
committerRichard Levitte <levitte@openssl.org>2001-02-20 13:11:54 +0000
commit56dde3ebe6df8d925fa2465df9c87ed5506aa107 (patch)
tree9f4fe69233ba130055fc9142f1f5ac9ab297bfb5 /apps/s_socket.c
parent6525ced540a33918a4093226a801e0542bd103c4 (diff)
Include opensslconf.h or the like early to make sure system macros get
correctly defined.
Diffstat (limited to 'apps/s_socket.c')
-rw-r--r--apps/s_socket.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c
index c261abb361..f60d929484 100644
--- a/apps/s_socket.c
+++ b/apps/s_socket.c
@@ -62,6 +62,14 @@
#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>
+
/* With IPv6, it looks like Digital has mixed up the proper order of
recursive header file inclusion, resulting in the compiler complaining
that u_int isn't defined, but only if _POSIX_C_SOURCE is defined, which
@@ -71,14 +79,6 @@
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);