From 25970a93aa6596d50ae538c6274625f95153572c Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 28 Jun 2018 14:32:36 +0430 Subject: [PATCH] armcc compatibility, don't use EINTR if doesn't exist Fixes #1081 --- src/hb-blob.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-blob.cc b/src/hb-blob.cc index d29c6b2c7..10db09785 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -617,7 +617,9 @@ fail_without_close: unsigned long addition = fread (data + len, 1, allocated - len, fp); int err = ferror (fp); +#ifdef EINTR // armcc doesn't have it if (unlikely (err == EINTR)) continue; +#endif if (unlikely (err)) goto fread_fail; len += addition;