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

Created check for MACOSX with __MACH__ #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Created check for MACOSX with __MACH__ #3

wants to merge 1 commit into from

Conversation

exowanderer
Copy link

@exowanderer exowanderer commented Feb 28, 2018

Inside all *.c files that the master branch version called #include <malloc.h> now checks if __MACH__ compiler flag exists. If it does, then the system is using OSX, which does not have the file /usr/local/include/malloc.h -- like linux does. Instead, the malloc command is containted inside stdlib.h.

By checking if the __MACH__ exists, and calling the correct malloc containing header file, the make command now correctly accesses the headers and creates the binary.

@exowanderer
Copy link
Author

exowanderer commented Feb 28, 2018

The Makefile that is listed as 'changed' is actually the identical Makefile.macosx that came with the original hotpants via github. I replaced it with Makefile before creating the binary. That can be ignored or overwritten later

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.

1 participant