-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around a header name collission on util.h
Perl provides a util.h. openpty() comes from a system util.h in OSX. The end result is that the system util.h is unreachable, and so openpty() is never declared. This commit works around this in a nasty and non-portable fashiom. First, it adds a second way of including the header in the XS code: #ifdef UTIL_H_ABS_PATH # define UTIL_H_ABS_PATH #endif And second, it uses an arcane command to figure out the exact header that gcc or clang ended up finding. It's pretty terrible, all things told, but since it'll only really kick in for OSX, the horror is somewhat contained.
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters