Skip to content

Commit a8c9e93

Browse files
committed
Fix issue #92
Don't include `sys/random.h` if compiling for iOS
1 parent 4edf735 commit a8c9e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chacha20poly1305.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static size_t read_urandom(void* buf, size_t n)
369369
return 0;
370370
}
371371

372-
#if defined(__APPLE__) && defined(__MAC_10_12)
372+
#if defined(__APPLE__) && defined(__MAC_10_12) && !defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
373373
#include <sys/random.h>
374374
#endif
375375

0 commit comments

Comments
 (0)