[SERVER-24190] Globally define _XOPEN_SOURCE Created: 18/May/16 Updated: 20/Aug/19 Resolved: 20/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
We should decide on a version of X/Open standard that the server source should conform to, and add the appropriate define of _XOPEN_SOURCE to our global list of defines. We should also reduce our use of _GNU_SOURCE and other feature test macros that expose less-portable C standard library functions (possibly ban such macros from SConscript files and require developers to define them on a per-source basis?). |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 18/May/16 ] |
|
This is going to be fiddly but I strongly support it. It will make much clearer those places where we have inadvertently picked up dependencies on GNU-isms. |