Wrong _XOPEN_SOURCE level to get strdup on OS X...
Bug #1638205 reported by
John Szakmeister
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvterm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The file vterm-ctrl.c should be defining _XOPEN_SOURCE to 600 in order to gain access to strdup on OS X. Since it's currently 500, the function is not exposed correctly, and the compiler gets the arguments and return type wrong.
Changed in libvterm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
FWIW, I reported this bug to Apple several years ago. :-( What you're doing is correct, but OS X has strdup() shown as requiring SuSv3 or better, rather than v2 or better.