wfreerdp: fix compilation

This commit is contained in:
Marc-André Moreau 2012-03-06 15:30:24 -05:00
parent 3d112b116c
commit c0fcf6a273
2 changed files with 9 additions and 3 deletions

View File

@ -17,13 +17,14 @@
* limitations under the License.
*/
#ifndef __PRINT_UTILS_H
#define __PRINT_UTILS_H
#ifndef FREERDP_PRINT_UTILS_H
#define FREERDP_PRINT_UTILS_H
#include <stdio.h>
#ifdef _WIN32
#define snprintf sprintf_s
#define strcasecmp _stricmp
#endif
#endif /* __PRINT_UTILS_H */
#endif /* FREERDP_PRINT_UTILS_H */

View File

@ -18,6 +18,7 @@
*/
#include <freerdp/utils/tcp.h>
#include <freerdp/utils/print.h>
#include <stdio.h>
#include <stdlib.h>
@ -46,6 +47,10 @@
#define close(_fd) closesocket(_fd)
#endif
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
int freerdp_tcp_connect(const char* hostname, int port)
{
int status;