Commit 21391ea3 authored by Brateau Etienne's avatar Brateau Etienne Committed by Jean-Baptiste Kempf
Browse files

(patch) Fix _POSIX_CLOCK_SELECTION in emscripten (set value to 0) because...

(patch) Fix _POSIX_CLOCK_SELECTION in emscripten (set value to 0) because clock_nanosleep is not defined
parent 6c6a09fe
From cdb3730114d038e4d2ba09e6812413474410da11 Mon Sep 17 00:00:00 2001
From: Etienne Brateau <etienne.brateau@gmail.com>
Date: Fri, 25 Aug 2017 10:24:40 +0200
Subject: [PATCH] Set _CLOCK_POSIX_SELECTION to 0 because clock_nanosleep is
not defined.
---
system/include/libc/unistd.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/include/libc/unistd.h b/system/include/libc/unistd.h
index c7cafaafb..2571fd594 100644
--- a/system/include/libc/unistd.h
+++ b/system/include/libc/unistd.h
@@ -239,7 +239,7 @@ int eaccess(const char *, int);
#define _POSIX_TIMEOUTS _POSIX_VERSION
#define _POSIX_MONOTONIC_CLOCK _POSIX_VERSION
#define _POSIX_CPUTIME _POSIX_VERSION
-#define _POSIX_CLOCK_SELECTION _POSIX_VERSION
+#define _POSIX_CLOCK_SELECTION 0
#define _POSIX_BARRIERS _POSIX_VERSION
#define _POSIX_SPIN_LOCKS _POSIX_VERSION
#define _POSIX_READER_WRITER_LOCKS _POSIX_VERSION
--
2.14.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment