ObjFW  Check-in [d55b73f38e]

Overview
Comment:Define _XOPEN_SOURCE_EXTENDED where necessary
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d55b73f38e30e2f70f5098e1fe6387d906de8dbcfb1add171619282ea3bd9f3c
User & Date: js on 2021-01-13 19:16:47
Other Links: manifest | tags
Context
2021-01-13
23:01
Wrap _XOPEN_SOURCE_EXTENDED define in #ifndef check-in: 430d54e2a9 user: js tags: trunk
19:16
Define _XOPEN_SOURCE_EXTENDED where necessary check-in: d55b73f38e user: js tags: trunk
18:15
Define _LARGEFILE64_SOURCE where necessary check-in: d67734339a user: js tags: trunk
Changes

Modified src/OFDatagramSocket.m from [1a97a9ea83] to [8dff090671].

10
11
12
13
14
15
16


17
18
19
20
21
22
23
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25







+
+







 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#define _XOPEN_SOURCE_EXTENDED

#include <errno.h>

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

Modified src/OFSelectKernelEventObserver.m from [df50d21c59] to [3e6bc46edc].

9
10
11
12
13
14
15
16

17
18

19
20
21
22
23
24
25
9
10
11
12
13
14
15

16
17

18
19
20
21
22
23
24
25







-
+

-
+







 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#define __NO_EXT_QNX
#include "config.h"

#include "config.h"
#define __NO_EXT_QNX

#include "platform.h"

#ifdef OF_WINDOWS
/* Win32 has a ridiculous default of 64, even though it supports much more. */
# define FD_SETSIZE 1024
#endif
37
38
39
40
41
42
43





44
45
46
47
48
49
50
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55







+
+
+
+
+







#import "OFOutOfRangeException.h"

#import "socket_helpers.h"

#ifdef OF_AMIGAOS
# include <proto/exec.h>
#endif

#ifdef OF_HPUX
/* FD_SET causes warnings on HP-UX/IA64. */
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif

@implementation OFSelectKernelEventObserver
- (instancetype)init
{
	self = [super init];

	@try {

Modified src/OFSequencedPacketSocket.m from [afdcde4505] to [2bdd509c56].

10
11
12
13
14
15
16


17
18
19
20
21
22
23
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25







+
+







 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#define _XOPEN_SOURCE_EXTENDED

#include <assert.h>
#include <errno.h>

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

Modified src/OFStreamSocket.m from [37c1cc3f6d] to [66cf0a873d].

9
10
11
12
13
14
15
16

17

18

19
20
21
22
23
24
25
9
10
11
12
13
14
15

16
17
18

19
20
21
22
23
24
25
26







-
+

+
-
+







 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#define __NO_EXT_QNX
#include "config.h"

#define _XOPEN_SOURCE_EXTENDED
#include "config.h"
#define __NO_EXT_QNX

#include <assert.h>
#include <errno.h>
#include <string.h>

#import "OFStreamSocket.h"
#import "OFStreamSocket+Private.h"

Modified src/OFTCPSocket.m from [d1c99c42fa] to [6b56ccc343].

9
10
11
12
13
14
15
16

17

18

19
20
21
22
23
24
25
9
10
11
12
13
14
15

16
17
18

19
20
21
22
23
24
25
26







-
+

+
-
+







 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#define __NO_EXT_QNX
#include "config.h"

#define _XOPEN_SOURCE_EXTENDED
#include "config.h"
#define __NO_EXT_QNX

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

#ifdef HAVE_FCNTL_H

Modified src/socket.m from [2d1d9f46b4] to [67f21d5ed8].

10
11
12
13
14
15
16


17
18
19
20
21
22
23
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25







+
+







 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#define _XOPEN_SOURCE_EXTENDED

#ifdef OF_NINTENDO_3DS
# include <malloc.h>  /* For memalign() */
#endif

#include <errno.h>