mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-19 19:43:34 -04:00
tests: Guard linux specific header includes with ifdef __linux__.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2016-01-13 Mark Wielaard <mjw@redhat.com>
|
||||
|
||||
* dwfl-proc-attach.c: Guard linux specific header.
|
||||
|
||||
2016-01-13 Mark Wielaard <mjw@redhat.com>
|
||||
|
||||
* system-elf-libelf-test.c: New test.
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <errno.h>
|
||||
#include <error.h>
|
||||
#include <unistd.h>
|
||||
#ifdef __linux__
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/user.h>
|
||||
@@ -29,6 +30,7 @@
|
||||
#include <string.h>
|
||||
#include ELFUTILS_HEADER(dwfl)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifndef __linux__
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user