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,[ ...@@ -829,7 +829,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
AC_MSG_RESULT(no)]) AC_MSG_RESULT(no)])
dnl Check for headers 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(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([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [], AC_CHECK_HEADERS([net/if.h], [], [],
......
...@@ -50,9 +50,7 @@ ...@@ -50,9 +50,7 @@
#include <cddb/cddb.h> #include <cddb/cddb.h>
#endif #endif
#ifdef HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif
/***************************************************************************** /*****************************************************************************
* Module descriptior * Module descriptior
......
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
#include <cdio/cd_types.h> #include <cdio/cd_types.h>
#include "info.h" #include "info.h"
#ifdef HAVE_ERRNO_H #include <errno.h>
# include <errno.h>
#endif
#include <assert.h> #include <assert.h>
static char *CDDAFormatStr( const access_t *p_access, cdda_data_t *p_cdda, static char *CDDAFormatStr( const access_t *p_access, cdda_data_t *p_cdda,
......
...@@ -48,9 +48,7 @@ ...@@ -48,9 +48,7 @@
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
#ifdef HAVE_ERRNO_H #include <errno.h>
# include <errno.h>
#endif
#ifdef HAVE_FCNTL_H #ifdef HAVE_FCNTL_H
# include <fcntl.h> # include <fcntl.h>
#endif #endif
......
...@@ -41,9 +41,7 @@ ...@@ -41,9 +41,7 @@
# include <stdio.h> # include <stdio.h>
#endif #endif
#ifdef HAVE_ERRNO_H #include <errno.h>
# include <errno.h>
#endif
#ifdef WIN32 #ifdef WIN32
# if !defined( UNDER_CE ) # if !defined( UNDER_CE )
...@@ -1573,14 +1571,10 @@ static int WriteUserKey( void *_p_drms, uint32_t *p_user_key ) ...@@ -1573,14 +1571,10 @@ static int WriteUserKey( void *_p_drms, uint32_t *p_user_key )
snprintf( psz_path, PATH_MAX - 1, snprintf( psz_path, PATH_MAX - 1,
"%s/" DRMS_DIRNAME, p_drms->psz_homedir ); "%s/" DRMS_DIRNAME, p_drms->psz_homedir );
#if defined( HAVE_ERRNO_H ) #if defined( WIN32 )
# if defined( WIN32 )
if( !mkdir( psz_path ) || errno == EEXIST ) if( !mkdir( psz_path ) || errno == EEXIST )
# else
if( !mkdir( psz_path, 0755 ) || errno == EEXIST )
# endif
#else #else
if( !mkdir( psz_path ) ) if( !mkdir( psz_path, 0755 ) || errno == EEXIST )
#endif #endif
{ {
snprintf( psz_path, PATH_MAX - 1, "%s/" DRMS_DIRNAME "/%08X.%03d", snprintf( psz_path, PATH_MAX - 1, "%s/" DRMS_DIRNAME "/%08X.%03d",
......
...@@ -20,17 +20,7 @@ ...@@ -20,17 +20,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_ERRNO_H #include <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 <string.h> #include <string.h>
#ifndef UNDER_CE #ifndef UNDER_CE
# include <io.h> # 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