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], [], [],
# include <stdio.h>
#endif
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
+#include <errno.h>
#ifdef WIN32
# if !defined( UNDER_CE )
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",