diff options
author | Eric Blake <eblake@redhat.com> | 2010-08-16 17:34:45 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-08-17 08:09:20 -0600 |
commit | 6f730e7ae5225bf9eb36554d94805b97a72784bd (patch) | |
tree | e0197c1b448ef88a2971242e4a782f0fb1d0c820 /doc | |
parent | c5728261c324a75f8d23dd7d10cb42dde9420227 (diff) | |
download | gnulib-6f730e7ae5225bf9eb36554d94805b97a72784bd.tar.gz |
test-stddef: test for (some) offsetof bugs
See the mailing list for a more comprehensive patch that works
around the Solaris bug.
* tests/test-stddef.c: Enhance test to ensure correct type of
offsetof.
* doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
that we are not fixing at this time.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-headers/stddef.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/posix-headers/stddef.texi b/doc/posix-headers/stddef.texi index 84db56c0cb..829447ca37 100644 --- a/doc/posix-headers/stddef.texi +++ b/doc/posix-headers/stddef.texi @@ -18,4 +18,11 @@ NetBSD 5.0 Portability problems not fixed by Gnulib: @itemize +@item +Some platforms provide an @code{offsetof} macro that cannot be used in +arbitrary expressions: +Solaris 10 +This problem can be worked around by parenthesizing the +@code{offsetof} expression in the unlikely case you use it with +@code{sizeof} or @samp{[]}. @end itemize |