ObjFW  Check-in [f078f529d8]

Overview
Comment:OFSelectKernelEventObserver: _maxFD = -1 on Amiga
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f078f529d8c243eb45f2bab2150250ce352e16145f96cec1985637ed18861823
User & Date: js on 2020-11-29 06:40:38
Other Links: manifest | tags
Context
2020-11-29
22:07
Fix macOS check for Xcode <= 8 check-in: 0060b188a9 user: js tags: trunk
06:40
OFSelectKernelEventObserver: _maxFD = -1 on Amiga check-in: f078f529d8 user: js tags: trunk
06:11
OFOptionsParser: Fix wrong deallocation order check-in: 36d7c17c98 user: js tags: trunk
Changes

Modified src/OFSelectKernelEventObserver.m from [73642ffd8c] to [286735673c].

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
	self = [super init];

	@try {
		FD_ZERO(&_readFDs);
		FD_ZERO(&_writeFDs);

#ifdef OF_AMIGAOS
		_maxFD = 0;
#else
# ifndef OF_WINDOWS
		if (_cancelFD[0] >= (int)FD_SETSIZE)
			@throw [OFInitializationFailedException
			    exceptionWithClass: self.class];
# endif








|







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
	self = [super init];

	@try {
		FD_ZERO(&_readFDs);
		FD_ZERO(&_writeFDs);

#ifdef OF_AMIGAOS
		_maxFD = -1;
#else
# ifndef OF_WINDOWS
		if (_cancelFD[0] >= (int)FD_SETSIZE)
			@throw [OFInitializationFailedException
			    exceptionWithClass: self.class];
# endif