ObjFW  Check-in [74bcc11aac]

Overview
Comment:Do not set SIGPIPE handler on MorphOS + libnix
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 74bcc11aacb73eb7b4160d3e5c7d5037574903fb0483d5221c365ef2dff3aef8
User & Date: js on 2017-05-28 17:45:58
Other Links: manifest | tags
Context
2017-05-28
17:56
OFThread: Use Delay() on MorphOS + libnix check-in: aa6143bdf1 user: js tags: trunk
17:45
Do not set SIGPIPE handler on MorphOS + libnix check-in: 74bcc11aac user: js tags: trunk
15:23
MorphOS: Do not include unistd.h when using libnix check-in: ad2c53e367 user: js tags: trunk
Changes

Modified src/OFStream.m from [563c34066f] to [c3c3a5a8ae].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+








#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif

#include "platform.h"

#ifndef OF_WINDOWS
#if !defined(OF_WINDOWS) && (!defined(OF_MORPHOS) || defined(OF_IXEMUL))
# include <signal.h>
#endif

#import "OFStream.h"
#import "OFStream+Private.h"
#import "OFString.h"
#import "OFDataArray.h"
52
53
54
55
56
57
58
59

60
61
62
63
64
65
66
52
53
54
55
56
57
58

59
60
61
62
63
64
65
66







-
+







#import "of_asprintf.h"

#define MIN_READ_SIZE 512

@implementation OFStream
@synthesize of_waitingForDelimiter = _waitingForDelimiter;

#ifndef OF_WINDOWS
#if !defined(OF_WINDOWS) && (!defined(OF_MORPHOS) || defined(OF_IXEMUL))
+ (void)initialize
{
	if (self == [OFStream class])
		signal(SIGPIPE, SIG_IGN);
}
#endif