And the last one
--- a/src/include/trousers_types.h
+++ b/src/include/trousers_types.h
@@ -118,7 +118,7 @@
BYTE *encData;
} TSS_KEY;
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined (__GLIBC__))
#define BSD_CONST
#elif (defined (__OpenBSD__) || defined (__FreeBSD__))
#define BSD_CONST const
--- a/src/tcsd/platform.c
+++ b/src/tcsd/platform.c
@@ -13,7 +13,7 @@
#include <sys/param.h>
#include <sys/sysctl.h>
#include <err.h>
-#elif (defined (__linux) || defined (linux))
+#elif (defined (__linux) || defined (linux) || defined(__GLIBC__))
#include <utmp.h>
#endif
@@ -31,7 +31,7 @@
#include "tcslog.h"
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
MUTEX_DECLARE_INIT(utmp_lock);
char
--- a/src/tspi/ps/tspps.c
+++ b/src/tspi/ps/tspps.c
@@ -44,7 +44,7 @@
TSS_RESULT result;
char *file_name = NULL, *home_dir = NULL;
struct passwd *pwp;
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
struct passwd pw;
#endif
struct stat stat_buf;
@@ -64,7 +64,7 @@
setpwent();
while (1) {
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
rc = getpwent_r(&pw, buf, PASSWD_BUFSIZE, &pwp);
if (rc) {
LogDebugFn("USER PS: Error getting path to home
directory: getpwent_r: %s",
--- a/tools/ps_inspect.c
+++ b/tools/ps_inspect.c
@@ -339,7 +339,7 @@
file_size = stat_buf.st_size;
- PRINT("filename: %s (%" OFF_T_PRINTF " bytes)\n", argv[1], file_size);
+ PRINT("filename: %s (%lld bytes)\n", argv[1], (long long) file_size);
rc = inspect(f, file_size);
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech