pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/lua-posix
Module Name: pkgsrc
Committed By: maya
Date: Tue Nov 20 17:45:38 UTC 2018
Modified Files:
pkgsrc/devel/lua-posix: distinfo
Added Files:
pkgsrc/devel/lua-posix/patches: patch-ext_posix_time.c
Log Message:
lua-posix: Only use CLOCK_{PROCESS,THREAD}_CPUTIME_ID if defined
This is needed for netbsd<8.
>From Edgar Fuß in PR pkg/53600
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/lua-posix/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/lua-posix/distinfo
diff -u pkgsrc/devel/lua-posix/distinfo:1.6 pkgsrc/devel/lua-posix/distinfo:1.7
--- pkgsrc/devel/lua-posix/distinfo:1.6 Tue Sep 18 03:37:03 2018
+++ pkgsrc/devel/lua-posix/distinfo Tue Nov 20 17:45:38 2018
@@ -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 @@ SHA512 (luaposix-34.0.4.tar.gz) = c6399d
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
Added files:
Index: pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c
diff -u /dev/null pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c:1.1
--- /dev/null Tue Nov 20 17:45:38 2018
+++ pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c Tue Nov 20 17:45:38 2018
@@ -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