summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2022-04-01 13:42:50 -0700
committerGitHub <noreply@github.com>2022-04-01 13:42:50 -0700
commit0690b2bcc03202f20ab28397de77a0b8a1f517e9 (patch)
treeaf5450930b3e7e280b486e3dd00245eaffec3934
parentada5b805eaa7480930082af9bc3d689c6f181329 (diff)
parent09a395d23c3757c0f40386c052809152f8451e0d (diff)
downloadacpica-0690b2bcc03202f20ab28397de77a0b8a1f517e9.tar.gz
Merge pull request #766 from juikim/master
Update FreeBSD-specific header
-rw-r--r--source/include/platform/acfreebsd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/include/platform/acfreebsd.h b/source/include/platform/acfreebsd.h
index fdf990825..022f7165e 100644
--- a/source/include/platform/acfreebsd.h
+++ b/source/include/platform/acfreebsd.h
@@ -166,6 +166,9 @@
#define ACPI_UINTPTR_T uintptr_t
+#define ACPI_TO_INTEGER(p) ((uintptr_t)(p))
+#define ACPI_OFFSET(d, f) __offsetof(d, f)
+
#define ACPI_USE_DO_WHILE_0
#define ACPI_USE_LOCAL_CACHE
#define ACPI_USE_NATIVE_DIVIDE
@@ -211,6 +214,7 @@
#if __STDC_HOSTED__
#include <ctype.h>
+#include <unistd.h>
#endif
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread))