Ticket #2740: code cleanup before 4.8.2 release.

Removes references to AC_HEADER_STDC macro, marked as obsolescent
in the Autoconf 2.60 release.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-01-02 10:34:52 +03:00 committed by Slava Zanko
parent 903e184fff
commit e2b67a33ba
3 changed files with 3 additions and 7 deletions

View File

@ -150,7 +150,6 @@ AC_CHECK_HEADERS([unistd.h string.h memory.h limits.h malloc.h \
AC_HEADER_TIME
AC_HEADER_DIRENT
AC_HEADER_STDC
dnl Missing structure components
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_rdev])

View File

@ -7,14 +7,12 @@
#ifndef MC_GLOBAL_H
#define MC_GLOBAL_H
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
#if defined(HAVE_STRING_H)
#include <string.h>
/* An ANSI string.h and pre-ANSI memory.h might conflict */
#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
#elif defined(HAVE_MEMORY_H)
#include <memory.h>
#endif /* !STDC_HEADERS & HAVE_MEMORY_H */
#else /* !STDC_HEADERS & !HAVE_STRING_H */
#else
#include <strings.h>
/* memory and strings.h conflict on other systems */
#endif /* !STDC_HEADERS & !HAVE_STRING_H */

View File

@ -38,7 +38,6 @@ AC_VALIDATE_CACHE_SYSTEM_TYPE
SAMBA_MAINTAINER_MODE
AC_INLINE
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_HEADER_TIME
AC_CHECK_HEADERS(arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h)