From 1354f4901a43a9fc34c4772d60f92e38aeffb296 Mon Sep 17 00:00:00 2001 From: Safayet N Ahmed Date: Sat, 3 Nov 2018 16:02:49 -0400 Subject: 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 --- include/tss2/tss2_tcti.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 typedef struct pollfd TSS2_TCTI_POLL_HANDLE; #elif defined(_WIN32) -- cgit v1.2.3