ObjFW  Diff

Differences From Artifact [5ad68e30bb]:

To Artifact [0a606f2f49]:


13
14
15
16
17
18
19
20

21
22
23
24
25
26
27
28
29

30
31
32
33


34
35
36
37
38
39
40
13
14
15
16
17
18
19

20
21
22
23
24
25
26
27
28

29
30
31
32

33
34
35
36
37
38
39
40
41







-
+








-
+



-
+
+








#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#if !defined(HAVE_THREADSAFE_GETADDRINFO) && !defined(_WIN32)
#include <netinet/in.h>
# include <netinet/in.h>
#endif

#import "OFTCPSocket.h"
#import "OFString.h"
#import "OFExceptions.h"
#import "OFMacros.h"

#ifndef INVALID_SOCKET
#define INVALID_SOCKET -1
# define INVALID_SOCKET -1
#endif

#if defined(OF_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO)
#import "OFThread.h"
# import "OFThread.h"
# import "OFDataArray.h"

static OFMutex *mutex = nil;
#endif

@implementation OFTCPSocket
#if defined(OF_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO)
+ (void)initialize