Skip to content

Commit

Permalink
remove header in CheckFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfanqi authored and fermino committed Dec 9, 2024
1 parent c7318d9 commit f0ca57e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,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

Expand Down Expand Up @@ -272,10 +267,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
Expand All @@ -293,10 +285,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
Expand Down

0 comments on commit f0ca57e

Please sign in to comment.