diff options
| author | Paul Eggert | 2016-01-17 14:10:26 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-17 14:11:09 -0800 |
| commit | fabb1fa31d1fd60764c025925e6c76c9145e5a59 (patch) | |
| tree | 9bb5e66cb3fac71c258e37954210e2be056a44b2 /src/bytecode.c | |
| parent | 05e8148a24ebe51fbe758dd16265e8fb81f85953 (diff) | |
| download | emacs-fabb1fa31d1fd60764c025925e6c76c9145e5a59.tar.gz emacs-fabb1fa31d1fd60764c025925e6c76c9145e5a59.zip | |
Port cleanup attribute to OpenBSD
The OpenBSD C compiler issues false alarms about strcpy, strcat, and
sprintf, and this messes up 'configure' when it tests for the cleanup
attribute. Work around the problem by using __has_attribute directly.
Problem reported by Joakim Jalap (Bug#22385).
* configure.ac: Don’t use AX_GCC_VAR_ATTRIBUTE.
* m4/ax_gcc_var_attribute.m4: Remove.
* src/conf_post.h (__has_attribute): Provide a substitute, for
non-GCC or older GCC compilers. All uses changed to assume
the substitute. Check for the cleanup attribute.
* src/emacs-module.c (module_has_cleanup): Just use __has_attribute.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions