From 7ae7b018ccf7760013f368fcb83aad9ecd8982a8 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Mon, 20 Jun 2016 16:23:28 +0000 Subject: With the power of USES=dos2unix, get rid of most patches and files with CRLF. While there, run make makepatch, rename patches to use the new scheme, and various fixes. With hat: portmgr Sponsored by: Absolight --- .../trousers/files/patch-src_tcs_ps_ps__utils.c | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 security/trousers/files/patch-src_tcs_ps_ps__utils.c (limited to 'security/trousers/files/patch-src_tcs_ps_ps__utils.c') diff --git a/security/trousers/files/patch-src_tcs_ps_ps__utils.c b/security/trousers/files/patch-src_tcs_ps_ps__utils.c new file mode 100644 index 000000000000..679a2d8c60af --- /dev/null +++ b/security/trousers/files/patch-src_tcs_ps_ps__utils.c @@ -0,0 +1,45 @@ +--- src/tcs/ps/ps_utils.c.orig 2016-06-20 15:21:26 UTC ++++ src/tcs/ps/ps_utils.c +@@ -16,10 +16,18 @@ + #if defined(HAVE_BYTEORDER_H) + #include + #elif defined(HTOLE_DEFINED) ++#if defined(HAVE_ENDIAN_H) + #include + #define LE_16 htole16 + #define LE_32 htole32 + #define LE_64 htole64 ++#endif ++#if defined(HAVE_SYS_ENDIAN_H) ++#include ++#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 @@ read_data(int fd, void *data, UINT32 siz + } + + +-#ifdef SOLARIS + TSS_RESULT +-#else +-inline TSS_RESULT +-#endif + write_data(int fd, void *data, UINT32 size) + { + int rc; -- cgit v1.2.3