ObjFW  Check-in [ed7377d854]

Overview
Comment:Fix missing include for getrandom()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ed7377d8545633fce270dc1a7c1e5e4039e0c2943941e09e2be75da5ecb98323
User & Date: js on 2020-07-12 11:17:07
Other Links: manifest | tags
Context
2020-07-12
17:57
Fix forwarding on SPARC/ELF for non-PIC check-in: fc5790f20c user: js tags: trunk
11:17
Fix missing include for getrandom() check-in: ed7377d854 user: js tags: trunk
10:35
Split of_random() into of_random{16,32,64}() check-in: 14f05841a3 user: js tags: trunk
Changes

Modified src/OFObject.m from [f5834cd36c] to [37d44845c9].

22
23
24
25
26
27
28




29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39







+
+
+
+







#include <string.h>

#include <assert.h>

#ifdef OF_APPLE_RUNTIME
# include <dlfcn.h>
#endif

#ifdef HAVE_GETRANDOM
# include <sys/random.h>
#endif

#import "OFObject.h"
#import "OFArray.h"
#import "OFLocale.h"
#import "OFMethodSignature.h"
#import "OFRunLoop.h"
#import "OFThread.h"
100
101
102
103
104
105
106
107

108
109
110
111
112
113
114
104
105
106
107
108
109
110

111
112
113
114
115
116
117
118







-
+








static struct {
	Class isa;
} allocFailedException;

uint32_t of_hash_seed;

#ifndef HAVE_ARC4RANDOM
#if !defined(HAVE_ARC4RANDOM) && !defined(HAVE_GETRANDOM)
static void
initRandom(void)
{
	struct timeval tv;

# ifdef HAVE_RANDOM
	gettimeofday(&tv, NULL);