summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Radman <ericshane@eradman.com>2013-05-30 00:06:40 -0400
committerEric Radman <ericshane@eradman.com>2013-05-30 00:06:40 -0400
commitadfda3909cfd5b48393d385f524c16848d76a7e2 (patch)
treeb62566b27242e239d803f1a349ac29fde624ce32
parent32d6e45d5bef360d103dd53df63c7b1730741b1b (diff)
downloadffi-adfda3909cfd5b48393d385f524c16848d76a7e2.tar.gz
Define intptr_t and uintptr_t for OpenBSD. Required for kqueue.
-rw-r--r--lib/ffi/platform/i386-openbsd/types.conf2
-rw-r--r--lib/ffi/platform/x86_64-openbsd/types.conf2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/ffi/platform/i386-openbsd/types.conf b/lib/ffi/platform/i386-openbsd/types.conf
index 33bd12b..c4df68a 100644
--- a/lib/ffi/platform/i386-openbsd/types.conf
+++ b/lib/ffi/platform/i386-openbsd/types.conf
@@ -82,6 +82,8 @@ rbx.platform.typedef.int32_t = int
rbx.platform.typedef.uint32_t = uint
rbx.platform.typedef.int64_t = long_long
rbx.platform.typedef.uint64_t = ulong_long
+rbx.platform.typedef.intptr_t = long
+rbx.platform.typedef.uintptr_t = ulong
rbx.platform.typedef.u_int8_t = uchar
rbx.platform.typedef.u_int16_t = ushort
rbx.platform.typedef.u_int32_t = uint
diff --git a/lib/ffi/platform/x86_64-openbsd/types.conf b/lib/ffi/platform/x86_64-openbsd/types.conf
index 33bd12b..c4df68a 100644
--- a/lib/ffi/platform/x86_64-openbsd/types.conf
+++ b/lib/ffi/platform/x86_64-openbsd/types.conf
@@ -82,6 +82,8 @@ rbx.platform.typedef.int32_t = int
rbx.platform.typedef.uint32_t = uint
rbx.platform.typedef.int64_t = long_long
rbx.platform.typedef.uint64_t = ulong_long
+rbx.platform.typedef.intptr_t = long
+rbx.platform.typedef.uintptr_t = ulong
rbx.platform.typedef.u_int8_t = uchar
rbx.platform.typedef.u_int16_t = ushort
rbx.platform.typedef.u_int32_t = uint