Skip to content
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

fix compilation on cygwin #1453

Merged
merged 1 commit into from
Sep 5, 2023
Merged

fix compilation on cygwin #1453

merged 1 commit into from
Sep 5, 2023

Conversation

frank2
Copy link
Contributor

@frank2 frank2 commented Jul 8, 2023

Hello! I am unsure if it was intentional not to target Cygwin, but based on what the modified line was targeting, it appears the line is attempting to detect compilation environments. Cygwin is a Windows-based Unix-like POSIX environment. So while it compiles on Windows (i.e.. defined(_WIN32), for MSVC), it ultimately gets compiled with Unix tools like GCC or Clang on a Windows environment, and can be detected with the __CYGWIN__ preprocessor define.

Compilation of the C Python bindings for miasm fails because it does not detect the Cygwin environment on compilation. The fix is pretty simple. Miasm is working great on my system now.

Let me know if it was intentional not to target Cygwin, I can see why you might not want to have so many platforms to support on your plate, but if you're targetting MinGW32, I don't see why you couldn't also support Cygwin.

@serpilliere serpilliere merged commit e9dee4e into cea-sec:master Sep 5, 2023
3 checks passed
@serpilliere
Copy link
Contributor

Thank you for the fix @frank2 !
(and sorry for the delay)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants