Skip to content

Commit

Permalink
remove header in CheckFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfanqi committed Jan 8, 2023
1 parent 2711b84 commit 2911558
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 @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2911558

Please sign in to comment.