-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cygwin build bot? #1274
Comments
Seems to be similar to 21e5d7e (thanks to @davidcarlisle for finding this out). |
I don't quite remember, but those |
I can't say I understand where these macros are used but it all builds for me on cygwin with this diff
|
No
Why not, great |
@davidcarlisle what about this patch instead? diff --git a/source/libs/harfbuzz/harfbuzz-src/src/hb-blob.cc b/source/libs/harfbuzz/harfbuzz-src/src/hb-blob.cc
index a335df308..9f27f520f 100644
--- a/source/libs/harfbuzz/harfbuzz-src/src/hb-blob.cc
+++ b/source/libs/harfbuzz/harfbuzz-src/src/hb-blob.cc
@@ -490,8 +490,8 @@ hb_blob_t::try_make_writable (void)
#if defined(_WIN32) || defined(__CYGWIN__)
# include <windows.h>
#else
-# ifndef _O_BINARY
-# define _O_BINARY 0
+# ifndef O_BINARY
+# define O_BINARY 0
# endif
#endif
@@ -542,7 +542,7 @@ hb_blob_create_from_file (const char *file_name)
hb_mapped_file_t *file = (hb_mapped_file_t *) calloc (1, sizeof (hb_mapped_file_t));
if (unlikely (!file)) return hb_blob_get_empty ();
- int fd = open (file_name, O_RDONLY | _O_BINARY, 0);
+ int fd = open (file_name, O_RDONLY | O_BINARY, 0);
if (unlikely (fd == -1)) goto fail_without_close;
struct stat st; |
If O_BINARY works on cygwin and mingw32, then good. Not sure defining it to 0 is good as that would mask a bug. |
This says cygwin has O_BINARY: http://www.cygwin.com/cygwin-ug-net/using-textbinary.html |
yes I was happy just to isolate where to fix, I wasn't at all confident that setting it to 0 was the correct fix other than it got the make build not to die at that point. I'll try with the diff from @khaledhosny |
I’m told that HarfBuzz does not currently build on Cygwin, is this a known issue?:
Do we have a Cygwin build bot, and if not do we want one?
The text was updated successfully, but these errors were encountered: