Skip to content

Commit 08920ce

Browse files
committed
add support for kernel v5 on include/stdarg.h
1 parent 33e4e42 commit 08920ce

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

include/stdarg.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
#ifndef lunatik_stdarg_h
77
#define lunatik_stdarg_h
88

9+
#include <linux/version.h>
10+
11+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
912
#include <linux/stdarg.h>
13+
#else
14+
#include <stdarg.h>
15+
#endif
1016

1117
#endif
1218

lunatik_conf.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: (c) 2023-2024 Ring Zero Desenvolvimento de Software LTDA
2+
* SPDX-FileCopyrightText: (c) 2023-2025 Ring Zero Desenvolvimento de Software LTDA
33
* SPDX-License-Identifier: MIT OR GPL-2.0-only
44
*/
55

@@ -35,6 +35,7 @@
3535

3636
#define l_randomizePivot() (~0)
3737

38+
#include <stdarg.h>
3839
#include <linux/random.h>
3940
#define luai_makeseed(L) get_random_u32()
4041

0 commit comments

Comments
 (0)