Get rid of more fcntl header includes

This commit is contained in:
twinaphex 2015-09-18 04:03:11 +02:00
parent f189ad271e
commit 432aac58a3
3 changed files with 2 additions and 6 deletions

View File

@ -19,7 +19,6 @@
#include <string.h>
#ifndef _WIN32
#include <fcntl.h>
#include <unistd.h>
#endif

View File

@ -13,9 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
#include <fcntl.h>
#include <compat/strcasestr.h>
#include <compat/strl.h>
#include <retro_endianness.h>

View File

@ -15,7 +15,6 @@
*/
#include <errno.h>
#include <fcntl.h>
#include <compat/strcasestr.h>
#include <compat/strl.h>
@ -60,7 +59,8 @@ static ssize_t get_token(RFILE *fd, char *token, size_t max_len)
rv = retro_fread(fd, c, 1);
if (rv == 0)
return 0;
else if (rv < 1)
if (rv < 1)
{
switch (errno)
{