ObjFW  Diff

Differences From Artifact [e6b38c0bf2]:

To Artifact [7c0069f9e8]:


9
10
11
12
13
14
15





16
17
18
19
20
21
22
23
24
25
26
27
28
 * the packaging of this file.
 */

#include "config.h"

#include <string.h>
#include <fcntl.h>






#import "OFSocket.h"
#import "OFExceptions.h"

#ifndef INVALID_SOCKET
#define INVALID_SOCKET -1
#endif

@implementation OFSocket
#ifdef _WIN32
+ (void)initialize
{
	WSADATA wsa;







>
>
>
>
>





|







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 * the packaging of this file.
 */

#include "config.h"

#include <string.h>
#include <fcntl.h>

#ifndef _WIN32
# include <sys/types.h>
# include <sys/socket.h>
#endif

#import "OFSocket.h"
#import "OFExceptions.h"

#ifndef INVALID_SOCKET
# define INVALID_SOCKET -1
#endif

@implementation OFSocket
#ifdef _WIN32
+ (void)initialize
{
	WSADATA wsa;