mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 13:46:41 +02:00
55 lines
1.6 KiB
Diff
55 lines
1.6 KiB
Diff
Source: https://github.com/sahib/rmlint/pull/605.patch
|
|
--
|
|
From 2911558726338ea447ba310321f2f0a090d00cb4 Mon Sep 17 00:00:00 2001
|
|
From: Alex Fan <alex.fan.q@gmail.com>
|
|
Date: Sat, 7 Jan 2023 02:14:17 +1100
|
|
Subject: [PATCH] remove header in CheckFunc
|
|
|
|
this is the proper way suggested by upstream
|
|
https://pairlist4.pair.net/pipermail/scons-users/2023-January/009150.html
|
|
---
|
|
SConstruct | 17 +++--------------
|
|
1 file changed, 3 insertions(+), 14 deletions(-)
|
|
|
|
diff --git a/SConstruct b/SConstruct
|
|
index 7e12d4134..83af15e12 100755
|
|
--- a/SConstruct
|
|
+++ b/SConstruct
|
|
@@ -196,12 +196,7 @@ def check_bigfiles(context):
|
|
|
|
have_stat64 = True
|
|
if tests.CheckFunc(
|
|
- context, 'stat64',
|
|
- header=
|
|
- '#include <sys/types.h>'
|
|
- '#include <sys/stat.h>'
|
|
- '#include <unistd.h>'
|
|
-
|
|
+ context, 'stat64'
|
|
):
|
|
have_stat64 = False
|
|
|
|
@@ -269,10 +264,7 @@ def check_xattr(context):
|
|
|
|
for func in ['getxattr', 'setxattr', 'removexattr', 'listxattr']:
|
|
if tests.CheckFunc(
|
|
- context, func,
|
|
- header=
|
|
- '#include <sys/types.h>'
|
|
- '#include <sys/xattr.h>'
|
|
+ context, func
|
|
):
|
|
rc = 0
|
|
break
|
|
@@ -290,10 +282,7 @@ def check_lxattr(context):
|
|
|
|
for func in ['lgetxattr', 'lsetxattr', 'lremovexattr', 'llistxattr']:
|
|
if tests.CheckFunc(
|
|
- context, func,
|
|
- header=
|
|
- '#include <sys/types.h>'
|
|
- '#include <sys/xattr.h>'
|
|
+ context, func
|
|
):
|
|
rc = 0
|
|
break
|