diff options
| author | Paul Eggert | 2013-06-21 13:27:13 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-06-21 13:27:13 -0700 |
| commit | b33a2a6febe9313d75775a00cc12c0fe5c81ef6b (patch) | |
| tree | eeeacc7ea50cc794f956c23fa2862965225276cb /lib-src | |
| parent | fbe9e0b9fb6a250674e7619e9ba794e74ff5f0bc (diff) | |
| download | emacs-b33a2a6febe9313d75775a00cc12c0fe5c81ef6b.tar.gz emacs-b33a2a6febe9313d75775a00cc12c0fe5c81ef6b.zip | |
* lib-src/ebrowse.c: Include <stddef.h>, needed on some platforms.
Diffstat (limited to 'lib-src')
| -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 @@ | |||
| 1 | 2013-06-21 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2013-06-21 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Use C99-style flexible array members if available. | 3 | Use C99-style flexible array members if available. |
| 4 | * ebrowse.c (struct member, struct alias, struct sym): | 4 | * ebrowse.c: Include <stddef.h>, for offsetof. |
| 5 | (struct member, struct alias, struct sym): | ||
| 5 | Use FLEXIBLE_ARRAY_MEMBER. | 6 | Use FLEXIBLE_ARRAY_MEMBER. |
| 6 | (add_sym, add_member, make_namespace, register_namespace_alias): | 7 | (add_sym, add_member, make_namespace, register_namespace_alias): |
| 7 | Use offsetof (struct, flex_array_member), not sizeof (struct), as | 8 | 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/>. */ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <stddef.h> | ||
| 22 | #include <stdio.h> | 23 | #include <stdio.h> |
| 23 | #include <stdlib.h> | 24 | #include <stdlib.h> |
| 24 | #include <string.h> | 25 | #include <string.h> |