diff options
author | Safayet N Ahmed <Safayet.Ahmed@ge.com> | 2018-11-03 16:02:49 -0400 |
---|---|---|
committer | Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de> | 2018-11-12 10:52:07 +0100 |
commit | 1354f4901a43a9fc34c4772d60f92e38aeffb296 (patch) | |
tree | e7b7b35b0531801e1a95af81cca18a31ac665aa6 /include | |
parent | 5f169d753137b640aa6cdfc98da879b2ef17538b (diff) | |
download | tpm2-tss-1354f4901a43a9fc34c4772d60f92e38aeffb296.tar.gz |
Added support for QNX build
QNX-specific quirks:
* Certain "netdb.h" API is only available if __EXT_POSIX1_200112 is
defined. __EXT_POSIX1_200112 is defined if "_QNX_SOURCE" is set.
http://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.neutrino.prog/topic/devel_ConformingToStandards.html
* Socket api is provided through separate library called "libsocket".
* Dynamic-library API (e.g. dl_open) is a part of libc. There is no
"libdl".
Makefile.am: Replaced hard-coded LDFLAGS, "-ldl" and "-lsocket"
with variables, LIBDL_LDFLAGS, and LIBSOCKET_LDFLAGS.
configure.ac: Added "$host_os" case statement to detect QNX targets
and modify CFLAGS and set the XXX_LDFLAGS as required.
tss2_tcti.h: Added "__QNXNTO__" to the list of OS-specific flags.
Signed-off-by: Safayet Ahmed <safayet.ahmed@ge.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tss2/tss2_tcti.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tss2/tss2_tcti.h b/include/tss2/tss2_tcti.h index f70ded38..902c5af3 100644 --- a/include/tss2/tss2_tcti.h +++ b/include/tss2/tss2_tcti.h @@ -18,7 +18,7 @@ #error Version mismatch among TSS2 header files. #endif /* TSS2_API_VERSION_1_2_1_108 */ -#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) +#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined (__QNXNTO__) #include <poll.h> typedef struct pollfd TSS2_TCTI_POLL_HANDLE; #elif defined(_WIN32) |