diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 08:47:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 08:47:11 +0000 |
commit | fa4b01ee7d479f7186d3a1a9c9eaf5211a3521ac (patch) | |
tree | ac80b66e9ade699a7a2b02492a4795838be0f6f3 /daemon/lua/kres-gen.sh | |
parent | Adding debian version 5.7.1-1. (diff) | |
download | knot-resolver-fa4b01ee7d479f7186d3a1a9c9eaf5211a3521ac.tar.xz knot-resolver-fa4b01ee7d479f7186d3a1a9c9eaf5211a3521ac.zip |
Merging upstream version 5.7.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'daemon/lua/kres-gen.sh')
-rwxr-xr-x | daemon/lua/kres-gen.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/daemon/lua/kres-gen.sh b/daemon/lua/kres-gen.sh index 70afb40..3befd5d 100755 --- a/daemon/lua/kres-gen.sh +++ b/daemon/lua/kres-gen.sh @@ -53,12 +53,15 @@ printf -- "local ffi = require('ffi')\n" printf -- "--[[ This file is generated by ./kres-gen.sh ]] ffi.cdef[[\n" # Some system dependencies. TODO: this generated part isn't perfectly portable. -${CDEFS} ${LIBKRES} types <<-EOF - typedef time_t - __time_t - __suseconds_t - struct timeval -EOF +printf " +typedef @time_t@ time_t; +typedef @time_t@ __time_t; +typedef @time_t@ __suseconds_t; +struct timeval { + __time_t tv_sec; + __suseconds_t tv_usec; +}; +" ## Various types (mainly), from libknot and libkres |