]> git.sesse.net Git - vlc/commitdiff
Remove useless (very partially used) check for errno.h
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 10 Apr 2009 13:31:25 +0000 (16:31 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 10 Apr 2009 14:05:13 +0000 (17:05 +0300)
configure.ac
modules/access/cdda.c
modules/access/cdda/info.c
modules/control/http/http.h
modules/demux/mp4/drms.c
src/extras/dirent.c

index 5a1666a8fc069026365c6d90a7c42303e534358a..d7a435f23b0560e4c1a41da350004803f6f7f9a6 100644 (file)
@@ -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], [], [],
index f4d980ffb96b4e8f66066dc47a51f9f045474fda..5bddc08a2b292190c600d7b5c9c627393bd0880d 100644 (file)
@@ -50,9 +50,7 @@
 #include <cddb/cddb.h>
 #endif
 
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif
 
 /*****************************************************************************
  * Module descriptior
index 9aec7ae19245a84542271c6f9e99d8601de0026e..78c7f7606b80a69665269a7a06cc1f5e13082bb3 100644 (file)
@@ -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,
index f069ee44a41c1ced742e9bb07c418daede9d6488..038b36baf8faec8a81fa29ed2bbbc9782c68b2b0 100644 (file)
@@ -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
index 9cacb52cd4653f2ca8a50920b5e44f2d30d7ade6..ca4d9c63982b4456f09903aaf171d09924a94e0e 100644 (file)
@@ -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",
index d0a0f3329305e1b5a5f467c47f1d07ebf48200a7..d19b762890a5f4ee7dae03631116e4be719bab7d 100644 (file)
 #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>