summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@vx21.xyz>2019-09-21 18:39:08 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-23 05:55:07 +0100
commit3ac26da52801101180070ce1392cbd40c3e7954e (patch)
tree10b88daa849f6c259768bd72a66265e0f12e7a98
parent32e9b6c5b18f78731a1b49363093e0f648b29955 (diff)
downloadluxio-3ac26da52801101180070ce1392cbd40c3e7954e.tar.bz2
Fix build on FreeBSD
-rw-r--r--luxio.c2
-rw-r--r--luxio_constants.inc.in22
2 files changed, 13 insertions, 11 deletions
diff --git a/luxio.c b/luxio.c
index 0db4979..e31fd8d 100644
--- a/luxio.c
+++ b/luxio.c
@@ -672,11 +672,13 @@ static void luxio__sigaction_hook(lua_State *L, lua_Debug *ar)
lua_pushinteger(L, info->si_uid);
lua_setfield(L, -2, "si_uid");
+#ifndef __FreeBSD__
lua_pushinteger(L, info->si_utime);
lua_setfield(L, -2, "si_utime");
lua_pushinteger(L, info->si_stime);
lua_setfield(L, -2, "si_stime");
+#endif
lua_pushinteger(L, (lua_Integer) info->si_addr);
lua_setfield(L, -2, "si_addr");
diff --git a/luxio_constants.inc.in b/luxio_constants.inc.in
index 22a1f13..a812715 100644
--- a/luxio_constants.inc.in
+++ b/luxio_constants.inc.in
@@ -404,7 +404,7 @@ static const struct {
E(_SC_SPAWN),
E(_SC_SPIN_LOCKS),
E(_SC_SPORADIC_SERVER),
- E(_SC_SS_REPL_MAX),
+? E(_SC_SS_REPL_MAX),
E(_SC_SYNCHRONIZED_IO),
E(_SC_THREAD_ATTR_STACKADDR),
E(_SC_THREAD_CPUTIME),
@@ -412,8 +412,8 @@ static const struct {
E(_SC_THREAD_PRIO_PROTECT),
E(_SC_THREAD_PRIORITY_SCHEDULING),
E(_SC_THREAD_PROCESS_SHARED),
- E(_SC_THREAD_ROBUST_PRIO_INHERIT),
- E(_SC_THREAD_ROBUST_PRIO_PROTECT),
+? E(_SC_THREAD_ROBUST_PRIO_INHERIT),
+? E(_SC_THREAD_ROBUST_PRIO_PROTECT),
E(_SC_THREAD_SAFE_FUNCTIONS),
E(_SC_THREAD_SPORADIC_SERVER),
E(_SC_THREADS),
@@ -421,18 +421,18 @@ static const struct {
E(_SC_TIMERS),
E(_SC_TRACE),
E(_SC_TRACE_EVENT_FILTER),
- E(_SC_TRACE_EVENT_NAME_MAX),
+? E(_SC_TRACE_EVENT_NAME_MAX),
E(_SC_TRACE_INHERIT),
E(_SC_TRACE_LOG),
- E(_SC_TRACE_NAME_MAX),
- E(_SC_TRACE_SYS_MAX),
- E(_SC_TRACE_USER_EVENT_MAX),
+? E(_SC_TRACE_NAME_MAX),
+? E(_SC_TRACE_SYS_MAX),
+? E(_SC_TRACE_USER_EVENT_MAX),
E(_SC_TYPED_MEMORY_OBJECTS),
E(_SC_VERSION),
- E(_SC_V7_ILP32_OFF32),
- E(_SC_V7_ILP32_OFFBIG),
- E(_SC_V7_LP64_OFF64),
- E(_SC_V7_LPBIG_OFFBIG),
+? E(_SC_V7_ILP32_OFF32),
+? E(_SC_V7_ILP32_OFFBIG),
+? E(_SC_V7_LP64_OFF64),
+? E(_SC_V7_LPBIG_OFFBIG),
{ NULL, 0 }
};