diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-04-20 16:33:28 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-04-27 20:12:17 +0200 |
commit | efd60bee71b9613a97bf60fa4f8d4407f8460ccb (patch) | |
tree | 1d0e5ddbda0ef43005230633eee1a443e0a6acf3 | |
parent | eb956e080ff54dd219231f70f727b6b10eecfe42 (diff) |
Include strings.h to make ffs available
We cannot rely on it to be available from any of the other headers.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/readelf.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1521d808..cbb77fc8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2017-04-20 Ulf Hermann <ulf.hermann@qt.io> + * readelf.c: Include strings.h. + +2017-04-20 Ulf Hermann <ulf.hermann@qt.io> + * unstrip.c: Check shnum for 0 before subtracting from it. 2017-04-20 Ulf Hermann <ulf.hermann@qt.io> diff --git a/src/readelf.c b/src/readelf.c index 6f6095d2..40d49139 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -38,6 +38,7 @@ #include <stdbool.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include <time.h> #include <unistd.h> #include <sys/stat.h> |