diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-06-21 13:27:13 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-06-21 13:27:13 -0700 |
commit | b33a2a6febe9313d75775a00cc12c0fe5c81ef6b (patch) | |
tree | eeeacc7ea50cc794f956c23fa2862965225276cb | |
parent | fbe9e0b9fb6a250674e7619e9ba794e74ff5f0bc (diff) | |
download | emacs-b33a2a6febe9313d75775a00cc12c0fe5c81ef6b.tar.gz |
* lib-src/ebrowse.c: Include <stddef.h>, needed on some platforms.
-rw-r--r-- | lib-src/ChangeLog | 3 | ||||
-rw-r--r-- | lib-src/ebrowse.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 62ee45aac51..e60b415ae17 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,7 +1,8 @@ 2013-06-21 Paul Eggert <eggert@cs.ucla.edu> Use C99-style flexible array members if available. - * ebrowse.c (struct member, struct alias, struct sym): + * ebrowse.c: Include <stddef.h>, for offsetof. + (struct member, struct alias, struct sym): Use FLEXIBLE_ARRAY_MEMBER. (add_sym, add_member, make_namespace, register_namespace_alias): Use offsetof (struct, flex_array_member), not sizeof (struct), as diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 81d0cf0a19e..2828591ed3f 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c @@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> +#include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> |