Commit b9587b54 authored by Ian Craggs's avatar Ian Craggs

Add applink.c to windows TLS test program

parent 1feefab9
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2012, 2014 IBM Corp. * Copyright (c) 2012, 2017 IBM Corp.
* *
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
...@@ -12,34 +12,29 @@ ...@@ -12,34 +12,29 @@
* *
* Contributors: * Contributors:
* Allan Stockdill-Mander - initial API and implementation and/or initial documentation * Allan Stockdill-Mander - initial API and implementation and/or initial documentation
* Ian Craggs - fix Windows includes
*******************************************************************************/ *******************************************************************************/
/** /**
* @file * @file
* SSL tests for the MQ Telemetry Asynchronous MQTT C client * SSL tests for the MQ Telemetry Asynchronous MQTT C client
*/ */
/*
#if !defined(_RTSHEADER)
#include <rts.h>
#endif
*/
#include "MQTTAsync.h" #include "MQTTAsync.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "Thread.h" #include "Thread.h"
#if !defined(_WINDOWS) #if defined(_WINDOWS)
#include <windows.h>
#include <openssl/applink.c>
#define MAXHOSTNAMELEN 256
#define snprintf _snprintf
#else
#include <sys/time.h> #include <sys/time.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#else
#include <windows.h>
#define MAXHOSTNAMELEN 256
#define snprintf _snprintf
#endif #endif
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment