mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-13 04:21:51 +02:00
Make libportfwd crosscompilable from linux.
This commit is contained in:
parent
c1ae02f459
commit
b41205e2f7
@ -1,3 +1,5 @@
|
||||
#ifndef LIBPORTFWD_PORTFWD_H
|
||||
#define LIBPORTFWD_PORTFWD_H true
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -34,3 +36,4 @@ class Portfwd
|
||||
unsigned int m_upbps, m_downbps;
|
||||
};
|
||||
|
||||
#endif
|
@ -23,7 +23,9 @@
|
||||
#define uint16_t unsigned short
|
||||
#endif
|
||||
/* Hack */
|
||||
#include <winsock.h>
|
||||
#define UNIX_PATH_LEN 108
|
||||
#include <stdint.h>
|
||||
struct sockaddr_un {
|
||||
uint16_t sun_family;
|
||||
char sun_path[UNIX_PATH_LEN];
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <io.h>
|
||||
#include <IPHlpApi.h>
|
||||
#include <iphlpapi.h>
|
||||
#define snprintf _snprintf
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||
#define strncasecmp _memicmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user