Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/sys
Module Name: src
Committed By: nia
Date: Mon Jan 12 14:51:50 UTC 2026
Modified Files:
src/sys/sys: types.h
Log Message:
Revert the change to stop including #include <sys/endian.h> from
<sys/types.h>.
This change was too risky in ways I didn't forsee, mostly that this code
compiles fine without the header included:
#if BYTE_ORDER == LITTLE_ENDIAN
/* do little endian stuff */
#else
/* do big endian stuff */
#endif
... then uses the big endian path on little endian machines.
If strict POSIX mode is requested, we can avoid including it. The problem
of relying on endian header transclusion is rare in non-BSD codebases.
To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/sys/types.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index