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

Replacing unsafe mktemp with mkdtemp to avoid linux compiler errors #28

Closed
wants to merge 1 commit into from

Conversation

@craftytrickster
Copy link

craftytrickster commented Jan 15, 2016

I am unable to compile servo on my linux laptop anymore due the following issue - which is caused by the inclusion of mktemp.

Unfortuntately, using mkstemp is not a viable solution, since it actually opens a handle on the newly created file, which causes libc bind to fail. As a workaround, I thought of using mkdtemp, which safely creates a random directory, and then just adding a file there to use. I have not worked with these libc functions before, so if I am overlooking something please let me know.

@@ -927,4 +930,3 @@ struct pollfd {
events: c_short,
revents: c_short,
}

This comment has been minimized.

@KiChjang

KiChjang Jan 15, 2016

Member

Add these newline back in, please.

@craftytrickster
Copy link
Author

craftytrickster commented Jan 16, 2016

After getting the latest dependencies from apt-get install, I no longer was getting the error message. If you would like, I can close the PR.

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.