mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-01-07 16:03:51 +08:00
wfreerdp: fix compilation
This commit is contained in:
parent
3d112b116c
commit
c0fcf6a273
@ -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 */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user