From d23a75a3dc70e5c22ff624d02acaf1ac499b02d8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 16 Oct 2009 09:32:50 +0000 Subject: [PATCH] Remove dead includes in FileName, since we do not use mkstemp anymore Do not check for headers strings.h, io.h, process.h Do not check for functions mkstemp, mktemp Do not check for declarations of istreambug_iterator, iterator, mktemp NOTE to cmake/scons maintainers: you should also get rid of the handling of those symbols. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31646 a592a061-630c-0410-9148-cb99ea01b6c8 --- configure.ac | 7 ++----- src/support/FileName.cpp | 13 ------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/configure.ac b/configure.ac index 84cee95c79..e8dfe8face 100644 --- a/configure.ac +++ b/configure.ac @@ -168,7 +168,7 @@ AC_LANG_POP(C) # some standard header files AC_HEADER_MAJOR -AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h strings.h locale.h io.h process.h NewAPIs.h utime.h sys/utime.h) +AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h locale.h NewAPIs.h utime.h sys/utime.h) # some standard structures AC_HEADER_STAT @@ -182,10 +182,7 @@ AC_TYPE_SIGNAL AC_TYPE_SIZE_T AC_TYPE_UID_T -AC_CHECK_FUNCS(strerror) -AC_CHECK_FUNCS(chmod close _close fork getpid _getpid lstat mkfifo mkstemp mktemp open _open pclose _pclose popen _popen readlink strerror) -LYX_CHECK_DECL(istreambuf_iterator, iterator) -LYX_CHECK_DECL(mkstemp,[unistd.h stdlib.h]) +AC_CHECK_FUNCS(chmod close _close fork getpid _getpid lstat mkfifo open _open pclose _pclose popen _popen readlink strerror) # Check the form of mkdir() AC_FUNC_MKDIR AC_FUNC_SELECT_ARGTYPES diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 8a5584564e..09984fdab0 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -59,19 +59,6 @@ #include #include -#if defined(HAVE_MKSTEMP) && ! defined(HAVE_DECL_MKSTEMP) -extern "C" int mkstemp(char *); -#endif - -#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP) -# ifdef HAVE_IO_H -# include -# endif -# ifdef HAVE_PROCESS_H -# include -# endif -#endif - // Three implementations of checksum(), depending on having mmap support or not. #if defined(HAVE_MMAP) && defined(HAVE_MUNMAP) #define SUM_WITH_MMAP