diff options
| author | Paul Eggert | 2022-03-08 18:46:47 -0800 |
|---|---|---|
| committer | Paul Eggert | 2022-03-08 18:51:17 -0800 |
| commit | ec35e2621a945797cc4978ebf2e0fe0b0f436705 (patch) | |
| tree | c303c24d6f967f8c647f4724337a5c1103625a63 /lib-src | |
| parent | f7032bdafe742c588c1b8b5054e2f383a41fff54 (diff) | |
| download | emacs-ec35e2621a945797cc4978ebf2e0fe0b0f436705.tar.gz emacs-ec35e2621a945797cc4978ebf2e0fe0b0f436705.zip | |
Do not include <attribute.h> from <config.h>
This is because mod-test.c shouldn’t use source code from lib,
but it does need to include <config.h>.
* lib-src/ebrowse.c, lib-src/emacsclient.c, lib-src/etags.c:
* lib-src/make-docfile.c, lib-src/movemail.c:
* lib-src/seccomp-filter.c, src/dynlib.h, src/lisp.h:
* src/syssignal.h, src/sysstdio.h, src/systhread.h, src/tparam.h:
Include <attribute.h>.
* src/conf_post.h: Do not include <attribute.h>.
All uses of attribute.h macros replaced with their _GL_ equivalents.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ebrowse.c | 1 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 1 | ||||
| -rw-r--r-- | lib-src/etags.c | 1 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 1 | ||||
| -rw-r--r-- | lib-src/movemail.c | 1 | ||||
| -rw-r--r-- | lib-src/seccomp-filter.c | 3 |
6 files changed, 7 insertions, 1 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index ac7e7901878..b77572734fe 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -26,6 +26,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 26 | #include <assert.h> | 26 | #include <assert.h> |
| 27 | #include <getopt.h> | 27 | #include <getopt.h> |
| 28 | 28 | ||
| 29 | #include <attribute.h> | ||
| 29 | #include <flexmember.h> | 30 | #include <flexmember.h> |
| 30 | #include <min-max.h> | 31 | #include <min-max.h> |
| 31 | #include <unlocked-io.h> | 32 | #include <unlocked-io.h> |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 365e803e1cd..7406ef3490e 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -80,6 +80,7 @@ char *w32_getenv (const char *); | |||
| 80 | #include <sys/stat.h> | 80 | #include <sys/stat.h> |
| 81 | #include <unistd.h> | 81 | #include <unistd.h> |
| 82 | 82 | ||
| 83 | #include <attribute.h> | ||
| 83 | #include <filename.h> | 84 | #include <filename.h> |
| 84 | #include <intprops.h> | 85 | #include <intprops.h> |
| 85 | #include <min-max.h> | 86 | #include <min-max.h> |
diff --git a/lib-src/etags.c b/lib-src/etags.c index aa5bc8839dd..65b9fae8d5a 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -112,6 +112,7 @@ University of California, as described above. */ | |||
| 112 | # define O_CLOEXEC O_NOINHERIT | 112 | # define O_CLOEXEC O_NOINHERIT |
| 113 | #endif /* WINDOWSNT */ | 113 | #endif /* WINDOWSNT */ |
| 114 | 114 | ||
| 115 | #include <attribute.h> | ||
| 115 | #include <inttypes.h> | 116 | #include <inttypes.h> |
| 116 | #include <limits.h> | 117 | #include <limits.h> |
| 117 | #include <unistd.h> | 118 | #include <unistd.h> |
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index f42b1988a2b..d2d4b1d2778 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -42,6 +42,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 42 | #include <stdlib.h> | 42 | #include <stdlib.h> |
| 43 | #include <string.h> | 43 | #include <string.h> |
| 44 | 44 | ||
| 45 | #include <attribute.h> | ||
| 45 | #include <binary-io.h> | 46 | #include <binary-io.h> |
| 46 | #include <c-ctype.h> | 47 | #include <c-ctype.h> |
| 47 | #include <intprops.h> | 48 | #include <intprops.h> |
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 888688f90b1..aa3c15e72e8 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -69,6 +69,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 69 | #include <signal.h> | 69 | #include <signal.h> |
| 70 | #include <string.h> | 70 | #include <string.h> |
| 71 | 71 | ||
| 72 | #include <attribute.h> | ||
| 72 | #include <unlocked-io.h> | 73 | #include <unlocked-io.h> |
| 73 | 74 | ||
| 74 | #include "syswait.h" | 75 | #include "syswait.h" |
diff --git a/lib-src/seccomp-filter.c b/lib-src/seccomp-filter.c index b5158510104..9f0de7d64f8 100644 --- a/lib-src/seccomp-filter.c +++ b/lib-src/seccomp-filter.c | |||
| @@ -59,7 +59,8 @@ variants of those files that can be used to sandbox Emacs before | |||
| 59 | #include <seccomp.h> | 59 | #include <seccomp.h> |
| 60 | #include <unistd.h> | 60 | #include <unistd.h> |
| 61 | 61 | ||
| 62 | #include "verify.h" | 62 | #include <attribute.h> |
| 63 | #include <verify.h> | ||
| 63 | 64 | ||
| 64 | #ifndef ARCH_CET_STATUS | 65 | #ifndef ARCH_CET_STATUS |
| 65 | #define ARCH_CET_STATUS 0x3001 | 66 | #define ARCH_CET_STATUS 0x3001 |