pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/lua-posix lua-posix: Only use CLOCK_{PROCESS, THR...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e3fc181813b3
branches: trunk
changeset: 325554:e3fc181813b3
user: maya <maya%pkgsrc.org@localhost>
date: Tue Nov 20 17:45:38 2018 +0000
description:
lua-posix: Only use CLOCK_{PROCESS,THREAD}_CPUTIME_ID if defined
This is needed for netbsd<8.
>From Edgar Fu? in PR pkg/53600
diffstat:
devel/lua-posix/distinfo | 3 ++-
devel/lua-posix/patches/patch-ext_posix_time.c | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 8b3442ab9d32 -r e3fc181813b3 devel/lua-posix/distinfo
--- a/devel/lua-posix/distinfo Tue Nov 20 17:34:46 2018 +0000
+++ b/devel/lua-posix/distinfo Tue Nov 20 17:45:38 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2018/09/18 03:37:03 maya Exp $
+$NetBSD: distinfo,v 1.7 2018/11/20 17:45:38 maya Exp $
SHA1 (luaposix-34.0.4.tar.gz) = 848b18807f7906386354e0be74079c0ccc56aab9
RMD160 (luaposix-34.0.4.tar.gz) = 6aa8c5a57b1df85c00ffa3f24c5e6cecf28169c0
@@ -6,4 +6,5 @@
Size (luaposix-34.0.4.tar.gz) = 175194 bytes
SHA1 (patch-ext_posix_stdlib.c) = 1ab4263d3578288ef54649ec6c91115019e664ce
SHA1 (patch-ext_posix_sys_socket.c) = 665f96727cee1aa4a4841b83be5b7ff270a0b505
+SHA1 (patch-ext_posix_time.c) = 2ef51e2a5db9e41afa557954edf2ac6aff33e3f2
SHA1 (patch-lukefile) = 41773ee71524080a35c924bd623a250c44791a2b
diff -r 8b3442ab9d32 -r e3fc181813b3 devel/lua-posix/patches/patch-ext_posix_time.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-posix/patches/patch-ext_posix_time.c Tue Nov 20 17:45:38 2018 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ext_posix_time.c,v 1.1 2018/11/20 17:45:38 maya Exp $
+
+Only use CLOCK_{PROCESS,THREAD}_CPUTIME_ID if defined
+
+--- ext/posix/time.c.orig 2018-11-20 17:41:28.954287969 +0000
++++ ext/posix/time.c
+@@ -350,10 +350,14 @@ luaopen_posix_time(lua_State *L)
+
+ #if defined _POSIX_TIMERS && _POSIX_TIMERS != -1
+ LPOSIX_CONST( CLOCK_MONOTONIC );
++#if defined CLOCK_PROCESS_CPUTIME_ID
+ LPOSIX_CONST( CLOCK_PROCESS_CPUTIME_ID );
++#endif
+ LPOSIX_CONST( CLOCK_REALTIME );
++#if defined CLOCK_THREAD_CPUTIME_ID
+ LPOSIX_CONST( CLOCK_THREAD_CPUTIME_ID );
+ #endif
++#endif
+
+ return 1;
+ }
Home |
Main Index |
Thread Index |
Old Index