Skip to content

Fix include for gcc 4.7.#207

Closed
hobbes1069 wants to merge 1 commit intoAcademySoftwareFoundation:masterfrom
hobbes1069:gcc47
Closed

Fix include for gcc 4.7.#207
hobbes1069 wants to merge 1 commit intoAcademySoftwareFoundation:masterfrom
hobbes1069:gcc47

Conversation

@hobbes1069
Copy link
Contributor

It looks like "off_t" is no longer gotten for free so unistd.h must be explicitly included.

@lgritz
Copy link
Collaborator

lgritz commented Jan 5, 2012

LGTM, I will merge it.

@brechtvl
Copy link
Contributor

brechtvl commented Jan 5, 2012

For visual studio / windows, unistd.h is not available, but sys/types.h is portable and seems like it would solve this issue.

@lgritz
Copy link
Collaborator

lgritz commented Jan 5, 2012

I was just wondering what effect this would have on Windows. I'll switch to sys/types.h instead. Safe everywhere?

@lgritz
Copy link
Collaborator

lgritz commented Jan 5, 2012

Merged.

@lgritz lgritz closed this Jan 5, 2012
@hobbes1069
Copy link
Contributor Author

Yup, worked for me too :)

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.

3 participants