Use access() instead of fopen() to search for PCH
authorSimon Richter <Simon.Richter@hogyros.de>
Thu, 25 Jul 2013 08:31:42 +0000 (10:31 +0200)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 25 Jul 2013 09:11:20 +0000 (17:11 +0800)
commitbae7924d272a757df25d4ca6256909dd4b596151
tree70ce648698d40b0de2f44831c603b2a346dab39f
parent9132605ceb63bd5d7a206292b64347b63b4c00ae
Use access() instead of fopen() to search for PCH

Since all we want to do is find out whether the file exists and can be
read, use the appropriate function.

Signed-off-by: Simon Richter <Simon.Richter@hogyros.de>
Reviewed-by: He Junyan <junyan.he@inbox.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/program.cpp