CVS commit: src/lib/lua/libm

2022-11-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 23 18:15:43 UTC 2022

Modified Files:
src/lib/lua/libm: libm.c

Log Message:
fix vax build


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/lua/libm/libm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/lua/libm

2022-11-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 23 18:15:43 UTC 2022

Modified Files:
src/lib/lua/libm: libm.c

Log Message:
fix vax build


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/lua/libm/libm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/lua/libm/libm.c
diff -u src/lib/lua/libm/libm.c:1.1 src/lib/lua/libm/libm.c:1.2
--- src/lib/lua/libm/libm.c:1.1	Mon Nov 21 17:01:33 2022
+++ src/lib/lua/libm/libm.c	Wed Nov 23 13:15:43 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: libm.c,v 1.1 2022/11/21 22:01:33 christos Exp $	*/
+/* $NetBSD: libm.c,v 1.2 2022/11/23 18:15:43 christos Exp $	*/
 
 /*-
  * Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: libm.c,v 1.1 2022/11/21 22:01:33 christos Exp $");
+__RCSID("$NetBSD: libm.c,v 1.2 2022/11/23 18:15:43 christos Exp $");
 
 #include 
 #include 
@@ -140,7 +140,9 @@ DFUNC_DBL(lgamma)
 DFUNC_DBL(log)
 DFUNC_DBL(log10)
 DFUNC_DBL(log1p)
+#ifndef __vax__
 DFUNC_DBL_DBL(nextafter)
+#endif
 DFUNC_DBL_DBL(pow)
 DFUNC_DBL_DBL(remainder)
 DFUNC_DBL(rint)
@@ -277,7 +279,9 @@ static const struct luaL_Reg lualibm[] =
 	{ "log10", libm_log10 },
 	{ "log1p", libm_log1p },
 	{ "nan", libm_nan },
+#ifndef __vax__
 	{ "nextafter", libm_nextafter },
+#endif
 	{ "pow", libm_pow },
 	{ "remainder", libm_remainder },
 	{ "rint", libm_rint },



CVS commit: src/lib/lua/libm

2022-11-22 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Nov 22 15:41:05 UTC 2022

Modified Files:
src/lib/lua/libm: Makefile

Log Message:
Correct path for libm.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/lua/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/lua/libm/Makefile
diff -u src/lib/lua/libm/Makefile:1.1 src/lib/lua/libm/Makefile:1.2
--- src/lib/lua/libm/Makefile:1.1	Mon Nov 21 22:01:33 2022
+++ src/lib/lua/libm/Makefile	Tue Nov 22 15:41:04 2022
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2022/11/21 22:01:33 christos Exp $
+# $NetBSD: Makefile,v 1.2 2022/11/22 15:41:04 rin Exp $
 
 LUA_MODULES = libm
 LUA_SRCS.libm   = libm.c
-LUA_DPLIBS += m /usr/lib
+LUA_DPLIBS += m ${.CURDIR}/../../libm
 
 .include 



CVS commit: src/lib/lua/libm

2022-11-22 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Nov 22 15:41:05 UTC 2022

Modified Files:
src/lib/lua/libm: Makefile

Log Message:
Correct path for libm.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/lua/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.