ObjFW  Check-in [4f935e7e9b]

Overview
Comment:OFSubprocess: Fix compilation on macOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4f935e7e9b2e81a0381b48afcf000a439ba65983dd3218828a44625c392e6b4b
User & Date: js on 2024-01-21 10:23:14
Other Links: manifest | tags
Context
2024-01-21
10:39
OFSubprocess: Fix compilation on macOS check-in: 93c947c919 user: js tags: 1.0
10:26
Fix OFSubprocessTests with --disable-files check-in: d3ef45da74 user: js tags: trunk
10:23
OFSubprocess: Fix compilation on macOS check-in: 4f935e7e9b user: js tags: trunk
10:10
Add tests for OFSubprocess check-in: 02824cb820 user: js tags: trunk
Changes

Modified src/platform/POSIX/OFSubprocess.m from [b319d33b6e] to [da4ff8a0a0].

37
38
39
40
41
42
43



44
45
46
47
48
49
50
51

#import "OFInitializationFailedException.h"
#import "OFNotOpenException.h"
#import "OFOutOfRangeException.h"
#import "OFReadFailedException.h"
#import "OFWriteFailedException.h"




#if !defined(HAVE_POSIX_SPAWNP) || !defined(HAVE_SPAWN_H)
extern char **environ;
#endif

@interface OFSubprocess ()
- (void)of_getArgv: (char ***)argv
    forProgramName: (OFString *)programName
      andArguments: (OFArray *)arguments;







>
>
>
|







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

#import "OFInitializationFailedException.h"
#import "OFNotOpenException.h"
#import "OFOutOfRangeException.h"
#import "OFReadFailedException.h"
#import "OFWriteFailedException.h"

#ifdef OF_MACOS
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#elif !defined(HAVE_POSIX_SPAWNP) || !defined(HAVE_SPAWN_H)
extern char **environ;
#endif

@interface OFSubprocess ()
- (void)of_getArgv: (char ***)argv
    forProgramName: (OFString *)programName
      andArguments: (OFArray *)arguments;