diff options
author | Mark Wielaard <mark@klomp.org> | 2022-10-16 18:23:06 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-10-16 18:23:10 +0200 |
commit | 2a4ce08fafcf76d866ae5f6b394389d8d93aa0cb (patch) | |
tree | 86c550ad2b0eceaefa2836e102107c7e3e818d64 | |
parent | 72860bfdca5286399837080d53ba297bf72c56b3 (diff) | |
download | elfutils-2a4ce08fafcf76d866ae5f6b394389d8d93aa0cb.tar.gz |
tests: include config.h first.
Otherwise some symbols (lseek, open) might not get the 64bit offset
variants because they don't pick up _FILE_OFFSET_BITS.
Signed-off-by: Mark Wielaard <mark@klomp.org>
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/dwfl-report-offline-memory.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index d07a910e..0ea1df3d 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,9 @@ 2022-10-16 Mark Wielaard <mark@klomp.org> + * dwfl-report-offline-memory.c: Include config.h first. + +2022-10-16 Mark Wielaard <mark@klomp.org> + * dwfl-report-offline-memory.c (main): Check lseek, read and malloc results with correct types. diff --git a/tests/dwfl-report-offline-memory.c b/tests/dwfl-report-offline-memory.c index 81fa136f..e6cb0a51 100644 --- a/tests/dwfl-report-offline-memory.c +++ b/tests/dwfl-report-offline-memory.c @@ -15,8 +15,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <assert.h> #include <config.h> + +#include <assert.h> #include <fcntl.h> #include <locale.h> #include <stdio.h> |