1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/security/trousers/files/patch-src-tcs-ps-ps_utils.c
Hiroki Sato 1ad6282266 - Unbreak clang build.
- Remove PORTEXAMPLES.  pkg-plist was broken due to it[*].
- Add extra patches for EMULATOR option.
- Create /var/run/{tpm,ima} in rc.d/tcsd script.

Spotted by:	antoine [*]
2013-07-31 13:59:04 +00:00

46 lines
889 B
C

--- src/tcs/ps/ps_utils.c.orig 2012-09-20 02:24:48.000000000 +0900
+++ src/tcs/ps/ps_utils.c 2013-07-31 22:18:59.000000000 +0900
@@ -16,10 +16,18 @@
#if defined(HAVE_BYTEORDER_H)
#include <sys/byteorder.h>
#elif defined(HTOLE_DEFINED)
+#if defined(HAVE_ENDIAN_H)
#include <endian.h>
#define LE_16 htole16
#define LE_32 htole32
#define LE_64 htole64
+#endif
+#if defined(HAVE_SYS_ENDIAN_H)
+#include <sys/endian.h>
+#define LE_16 htole16
+#define LE_32 htole32
+#define LE_64 htole64
+#endif
#else
#define LE_16(x) (x)
#define LE_32(x) (x)
@@ -42,11 +50,7 @@
struct key_disk_cache *key_disk_cache_head = NULL;
-#ifdef SOLARIS
TSS_RESULT
-#else
-inline TSS_RESULT
-#endif
read_data(int fd, void *data, UINT32 size)
{
int rc;
@@ -64,11 +68,7 @@
}
-#ifdef SOLARIS
TSS_RESULT
-#else
-inline TSS_RESULT
-#endif
write_data(int fd, void *data, UINT32 size)
{
int rc;