ObjFW  Check-in [8d21d6f269]

Overview
Comment:Fix compilation on {Net,Open}BSD, OpenIndiana etc.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d21d6f26988fef9b5d80fffd83970cf586f228977d9f16d6e546b19c1884a64
User & Date: js on 2024-01-21 11:41:43
Other Links: manifest | tags
Context
2024-01-21
12:19
Update ChangeLog for 1.0.8 check-in: dc20dfdc5f user: js tags: trunk
11:42
Fix compilation on {Net,Open}BSD, OpenIndiana etc. check-in: efe09b8894 user: js tags: 1.0
11:41
Fix compilation on {Net,Open}BSD, OpenIndiana etc. check-in: 8d21d6f269 user: js tags: trunk
10:52
Update ChangeLog for 1.0.7 check-in: 9cbb05a4d3 user: js tags: trunk
Changes

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

37
38
39
40
41
42
43
44


45
46
47
48
49
50
51
52
53
54
55

#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;
- (char **)of_environmentForDictionary: (OFDictionary *)dictionary;







|
>
>


<
<







37
38
39
40
41
42
43
44
45
46
47
48


49
50
51
52
53
54
55

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

#ifndef OF_MACOS
extern char **environ;
#else
# include <crt_externs.h>
# define environ (*_NSGetEnviron())


#endif

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