mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-09 23:38:23 +00:00
tpm2 + test: Make it compilable on Debian GNU Hurd
The simple changes make it compilable on GNU Hurd where it is currently failing to build. Link: https://buildd.debian.org/status/package.php?p=libtpms&suite=sid Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
3a63c3f3df
commit
5695736b4f
@ -89,7 +89,7 @@
|
||||
#else
|
||||
# include <endian.h>
|
||||
#endif
|
||||
#if defined __linux__ || defined __CYGWIN__
|
||||
#if defined __linux__ || defined __CYGWIN__ || defined __gnu_hurd__
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#define BIG_ENDIAN_TPM NO
|
||||
#endif
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# @1: filename
|
||||
function get_filesize()
|
||||
{
|
||||
if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-) ]]; then
|
||||
if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-|GNU) ]]; then
|
||||
stat -c%s "$1"
|
||||
else
|
||||
# OpenBSD
|
||||
|
||||
Loading…
Reference in New Issue
Block a user