File: xattr-fixes.patch

package info (click to toggle)
rmlint 2.10.2-0.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,180 kB
  • sloc: ansic: 15,671; python: 9,312; sh: 474; xml: 111; makefile: 72
file content (51 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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(-)

--- a/SConstruct
+++ b/SConstruct
@@ -199,12 +199,7 @@
 
     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
 
@@ -272,10 +267,7 @@
 
     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
@@ -293,10 +285,7 @@
 
     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