Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4674566b
Commit
4674566b
authored
Dec 02, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Allow the source directory itself in include paths.
parent
d9f95001
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
makedep.c
tools/makedep.c
+4
-3
No files found.
tools/makedep.c
View file @
4674566b
...
...
@@ -536,7 +536,7 @@ static FILE *open_include_file( struct incl_file *pFile )
{
FILE
*
file
=
NULL
;
char
*
filename
,
*
p
;
unsigned
int
i
;
unsigned
int
i
,
len
;
errno
=
ENOENT
;
...
...
@@ -664,8 +664,9 @@ static FILE *open_include_file( struct incl_file *pFile )
{
/* ignore absolute paths that don't point into the source dir */
if
(
!
top_src_dir
)
continue
;
if
(
strncmp
(
dir
,
top_src_dir
,
strlen
(
top_src_dir
)
))
continue
;
if
(
dir
[
strlen
(
top_src_dir
)]
!=
'/'
)
continue
;
len
=
strlen
(
top_src_dir
);
if
(
strncmp
(
dir
,
top_src_dir
,
len
))
continue
;
if
(
dir
[
len
]
&&
dir
[
len
]
!=
'/'
)
continue
;
}
filename
=
strmake
(
"%s/%s"
,
dir
,
pFile
->
name
);
if
((
file
=
fopen
(
filename
,
"r"
)))
goto
found
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment