mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
generic: remove checks for system headers that should be present
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a9d79bce19
commit
29a8459798
19 changed files with 7 additions and 83 deletions
|
@ -23,18 +23,13 @@ set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
|
|||
macro_bool_to_01(LIBINTL_FOUND ENABLE_NLS) # kdecore
|
||||
macro_bool_to_01(ACL_FOUND HAVE_POSIX_ACL) # kio
|
||||
|
||||
check_include_files(string.h HAVE_STRING_H) # various
|
||||
check_include_files(fstab.h HAVE_FSTAB_H) # kio, kdecore
|
||||
check_include_files(mntent.h HAVE_MNTENT_H) # solid, kio, kdecore
|
||||
check_include_files(sys/stat.h HAVE_SYS_STAT_H) # various
|
||||
check_include_files(sys/types.h HAVE_SYS_TYPES_H) # various
|
||||
check_include_files(sys/select.h HAVE_SYS_SELECT_H) # various
|
||||
check_include_files(sys/param.h HAVE_SYS_PARAM_H) # various
|
||||
check_include_files("stdio.h;sys/mnttab.h" HAVE_SYS_MNTTAB_H) # kio, kdecore
|
||||
check_include_files(sys/mntent.h HAVE_SYS_MNTENT_H) # solid, kio, kdecore
|
||||
check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H) # kio, kdecore
|
||||
check_include_files(paths.h HAVE_PATHS_H) # kdecore
|
||||
check_include_files(sys/time.h HAVE_SYS_TIME_H) # kioslave
|
||||
|
||||
# TODO: separate to config-x11.h
|
||||
macro_bool_to_01(X11_XTest_FOUND HAVE_XTEST) # kdecore
|
||||
|
|
|
@ -6,11 +6,7 @@
|
|||
|
||||
/****************************/
|
||||
|
||||
#cmakedefine HAVE_SYS_STAT_H 1
|
||||
#cmakedefine HAVE_SYS_TYPES_H 1
|
||||
#cmakedefine HAVE_SYS_PARAM_H 1
|
||||
#cmakedefine HAVE_SYS_TIME_H 1
|
||||
#cmakedefine HAVE_SYS_SELECT_H 1
|
||||
#cmakedefine HAVE_SYS_MNTTAB_H 1
|
||||
#cmakedefine HAVE_SYS_MNTENT_H 1
|
||||
#cmakedefine HAVE_SYS_MOUNT_H 1
|
||||
|
@ -27,11 +23,6 @@
|
|||
#cmakedefine HAVE_GETGROUPLIST 1
|
||||
#cmakedefine HAVE_TTYNAME_R 1
|
||||
|
||||
#cmakedefine TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* Define to 1 if you have string.h */
|
||||
#cmakedefine HAVE_STRING_H 1
|
||||
|
||||
/* define if message translations are enabled */
|
||||
#cmakedefine ENABLE_NLS 1
|
||||
|
||||
|
|
|
@ -23,12 +23,8 @@
|
|||
#include <config.h>
|
||||
#include <config-date.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
@ -45,7 +41,6 @@
|
|||
#include <kdebug.h>
|
||||
|
||||
|
||||
|
||||
static const char shortDay[][4] = {
|
||||
"Mon", "Tue", "Wed",
|
||||
"Thu", "Fri", "Sat",
|
||||
|
|
|
@ -27,12 +27,8 @@
|
|||
#include <config.h>
|
||||
#include <config-date.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include <climits>
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
|
@ -24,12 +24,8 @@
|
|||
#include <config.h>
|
||||
#include <config-date.h> // SIZEOF_TIME_T
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include <climits>
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
|
@ -22,12 +22,8 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QDataStream>
|
||||
|
|
|
@ -62,13 +62,8 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BACKTRACE
|
||||
#include <execinfo.h>
|
||||
|
|
|
@ -23,12 +23,8 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -46,9 +46,7 @@ static Qt::CaseSensitivity cs = Qt::CaseSensitive;
|
|||
|
||||
// This is the *BSD branch
|
||||
#ifdef HAVE_SYS_MOUNT_H
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
|
|
@ -23,11 +23,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@ -48,7 +44,6 @@
|
|||
#include "kde_file.h"
|
||||
|
||||
|
||||
|
||||
class KTempDir::Private
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -26,15 +26,14 @@
|
|||
|
||||
#include "kglobal.h"
|
||||
#include "kglobal_p.h"
|
||||
#include <QThread>
|
||||
#include <QtCore/qatomic.h>
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#include <unistd.h> // umask
|
||||
|
||||
#include <QThread>
|
||||
#include <QtCore/qatomic.h>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QSet>
|
||||
|
||||
|
@ -50,7 +49,6 @@
|
|||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QTextCodec>
|
||||
#include "kcmdlineargs.h"
|
||||
#include <unistd.h> // umask
|
||||
|
||||
mode_t s_umsk;
|
||||
|
||||
|
|
|
@ -49,9 +49,7 @@
|
|||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -26,13 +26,9 @@
|
|||
|
||||
#include <math.h>
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include <mutex>
|
||||
|
||||
#include <QtCore/QTextCodec>
|
||||
#include <QtCore/QFile>
|
||||
|
@ -43,8 +39,6 @@
|
|||
#include <QtCore/QHash>
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
#include <mutex>
|
||||
|
||||
#include "kcatalog_p.h"
|
||||
#include "kglobal.h"
|
||||
#include "kstandarddirs.h"
|
||||
|
|
|
@ -66,9 +66,7 @@
|
|||
#include <stdlib.h> // srand(), rand()
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef Q_WS_X11
|
||||
#include <netwm.h>
|
||||
|
|
|
@ -26,13 +26,8 @@ DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/select.h> // Needed on some systems.
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -40,9 +41,6 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
# include <sys/select.h> // Needed on some systems.
|
||||
#endif
|
||||
|
||||
#include <qplatformdefs.h>
|
||||
#include <QtCore/QLibrary>
|
||||
|
|
|
@ -35,10 +35,7 @@
|
|||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/socket.h>
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
|
@ -51,9 +48,7 @@
|
|||
#include <time.h>
|
||||
#include <utime.h>
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qdatetime.h>
|
||||
|
|
|
@ -31,11 +31,8 @@
|
|||
|
||||
#include "ftp.h"
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#include <ctime>
|
||||
#endif
|
||||
|
||||
#include <cctype>
|
||||
#include <cerrno>
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -40,9 +40,7 @@
|
|||
#ifdef HAVE_SYS_FILIO_H
|
||||
# include <sys/filio.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#include <sys/time.h>
|
||||
|
||||
#if defined(Q_OS_FREEBSD) || defined(Q_OS_DRAGONFLY)
|
||||
// "the other end's output queue size" - kinda braindead, huh?
|
||||
|
|
Loading…
Add table
Reference in a new issue