Commit 4fb633f7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove useless (very partially used) check for errno.h

parent 9f2a0bac
......@@ -829,7 +829,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
AC_MSG_RESULT(no)])
dnl Check for headers
AC_CHECK_HEADERS(time.h errno.h stdint.h getopt.h strings.h locale.h)
AC_CHECK_HEADERS(time.h stdint.h getopt.h strings.h locale.h)
AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
......
......@@ -50,9 +50,7 @@
#include <cddb/cddb.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
/*****************************************************************************
* Module descriptior
......
......@@ -36,9 +36,7 @@
#include <cdio/cd_types.h>
#include "info.h"
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
#include <errno.h>
#include <assert.h>
static char *CDDAFormatStr( const access_t *p_access, cdda_data_t *p_cdda,
......
......@@ -48,9 +48,7 @@
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
#include <errno.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
......
......@@ -41,9 +41,7 @@
# include <stdio.h>
#endif
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
#include <errno.h>
#ifdef WIN32
# if !defined( UNDER_CE )
......@@ -1573,14 +1571,10 @@ static int WriteUserKey( void *_p_drms, uint32_t *p_user_key )
snprintf( psz_path, PATH_MAX - 1,
"%s/" DRMS_DIRNAME, p_drms->psz_homedir );
#if defined( HAVE_ERRNO_H )
# if defined( WIN32 )
#if defined( WIN32 )
if( !mkdir( psz_path ) || errno == EEXIST )
# else
if( !mkdir( psz_path, 0755 ) || errno == EEXIST )
# endif
#else
if( !mkdir( psz_path ) )
if( !mkdir( psz_path, 0755 ) || errno == EEXIST )
#endif
{
snprintf( psz_path, PATH_MAX - 1, "%s/" DRMS_DIRNAME "/%08X.%03d",
......
......@@ -20,17 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_ERRNO_H
# include <errno.h>
#else
static int errno;
/* FIXME: anything clever to put here? */
# define EFAULT 12
# define ENOTDIR 12
# define ENOENT 12
# define ENOMEM 12
# define EINVAL 12
#endif
#include <errno.h>
#include <string.h>
#ifndef UNDER_CE
# include <io.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment