blob: 78e912d22039aa4e06079e6ab19991116ef6a102 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/util.h.orig 2019-08-22 19:25:53 UTC
+++ src/util.h
@@ -9,8 +9,17 @@
#include <glib.h>
#include <gio/gio.h>
#include <tss2/tss2_tpm2_types.h>
+#if defined(__FreeBSD__)
+#include <sys/endian.h>
+#endif
#include "control-message.h"
+
+#if defined(__FreeBSD__)
+#ifndef POLLRDHUP
+#define POLLRDHUP 0
+#endif
+#endif
/* Use to suppress "unused parameter" warnings: */
#define UNUSED_PARAM(p) ((void)(p))
|