diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2020-04-18 00:08:59 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2020-04-19 12:19:54 +0200 |
commit | 41d0f7875144d18408042cb69c82a162d0389828 (patch) | |
tree | 0ebd0f02df091172cfbafbedc11687ad742e5e37 | |
parent | 214b1eb98e7adf5575348df8a48800d6c12eebc6 (diff) | |
download | strace-41d0f7875144d18408042cb69c82a162d0389828.tar.gz |
configure: annotate waitid_types with #enum
This also syncs up the configure checks with the actual list of xlat
values.
* xlat/waitid_types.in: Add #enum, #include <sys/types.h>, and #include
<sys/wait.h>.
* configure.ac (AC_CHECK_DECL(P_*)): Remove.
Complements: v5.4~82 "xlat: update waitid_types"
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | xlat/waitid_types.in | 3 |
2 files changed, 3 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index d8e341c86..03de80594 100644 --- a/configure.ac +++ b/configure.ac @@ -650,18 +650,6 @@ AC_CHECK_DECLS(m4_normalize([ ]),,, [#include <sys/ptrace.h>]) AC_CHECK_DECLS(m4_normalize([ - P_PID, - P_PPID, - P_PGID, - P_SID, - P_CID, - P_UID, - P_GID, - P_ALL, - P_LWPID -]),,, [#include <sys/wait.h>]) - -AC_CHECK_DECLS(m4_normalize([ CTL_PROC, CTL_ARLAN, CTL_S390DBF, diff --git a/xlat/waitid_types.in b/xlat/waitid_types.in index 036a2b291..cec9a7c09 100644 --- a/xlat/waitid_types.in +++ b/xlat/waitid_types.in @@ -1,4 +1,7 @@ #value_indexed +#enum +#include <sys/types.h> +#include <sys/wait.h> P_ALL 0 P_PID 1 P_PGID 2 |