summaryrefslogtreecommitdiffstats
path: root/source/compiler/prutils.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-11-14 22:20:16 +0000
committerjkim <jkim@FreeBSD.org>2012-11-14 22:20:16 +0000
commit526bfcf905004d9b67338a445cb661a63c3de018 (patch)
tree2ffc551e57f0545a17c165d729c1438a26236f60 /source/compiler/prutils.c
parentd8cd02b5b5893df382c08566087e32fe5b0c3abb (diff)
downloadFreeBSD-src-526bfcf905004d9b67338a445cb661a63c3de018.zip
FreeBSD-src-526bfcf905004d9b67338a445cb661a63c3de018.tar.gz
Import ACPICA 20121114.
Diffstat (limited to 'source/compiler/prutils.c')
-rw-r--r--source/compiler/prutils.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/compiler/prutils.c b/source/compiler/prutils.c
index 9ec851a..1502708 100644
--- a/source/compiler/prutils.c
+++ b/source/compiler/prutils.c
@@ -337,16 +337,17 @@ PrOpenIncludeWithPrefix (
/* Attempt to open the file, push if successful */
IncludeFile = fopen (Pathname, "r");
- if (IncludeFile)
+ if (!IncludeFile)
{
- /* Push the include file on the open input file stack */
-
- PrPushInputFileStack (IncludeFile, Pathname);
- return (IncludeFile);
+ fprintf (stderr, "Could not open include file %s\n", Pathname);
+ ACPI_FREE (Pathname);
+ return (NULL);
}
- ACPI_FREE (Pathname);
- return (NULL);
+ /* Push the include file on the open input file stack */
+
+ PrPushInputFileStack (IncludeFile, Pathname);
+ return (IncludeFile);
}
OpenPOWER on IntegriCloud