Module Name: src Committed By: apb Date: Sat Apr 19 19:01:08 UTC 2014
Modified Files: src/tools/compat: compat_defs.h Log Message: Clarify the NetBSD-specific and Linux-specific code at the top of compat_defs.h: * Explain why _NETBSD_SOURCE should not be defined on NetBSD. * Move NetBSD-specific block to the top of the file. * Improve comment about Linux <feature.h>. * Move #undef _POSIX_SOURCE and #undef _POSIX_C_SOURCE to the Linux-specific block instead of a place that would affect all non-NetBSD platforms. This makes the code match the comment. This will need to be re-visited if other platforms also need #undef _POSIX_SOURCE or #undef _POSIX_C_SOURCE. At present, I suspect that they are needed only for Linux. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/tools/compat/compat_defs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.