ObjFW  Check-in [93c947c919]

Overview
Comment:OFSubprocess: Fix compilation on macOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.0
Files: files | file ages | folders
SHA3-256: 93c947c919dc6ddba3d5e8a35966c669c773af11258c9cd022155c2218ff543e
User & Date: js on 2024-01-21 10:39:03
Other Links: branch diff | manifest | tags
Context
2024-01-21
10:39
Add tests for OFSubprocess check-in: 929a2d807a user: js tags: 1.0
10:39
OFSubprocess: Fix compilation on macOS check-in: 93c947c919 user: js tags: 1.0
10:23
OFSubprocess: Fix compilation on macOS check-in: 4f935e7e9b user: js tags: trunk
09:56
OFSubprocess: Fix dealloc after -[closeForWriting] check-in: 9882a09715 user: js tags: 1.0
Changes

Modified src/platform/POSIX/OFSubprocess.m from [bc4c8c1cd4] to [874cad7132].

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;