kinit: remove unused configuration checks

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-25 09:52:58 +03:00
parent f1eeb96440
commit d5f444e1dd
3 changed files with 2 additions and 13 deletions

View file

@ -9,15 +9,10 @@ include_directories(${KDE4_KPARTS_INCLUDES})
########### Configuring (mainly for proctitle) ###########
include(CheckFunctionExists)
include(CheckIncludeFiles)
include(CheckVariableExists)
check_variable_exists(__progname HAVE___PROGNAME)
check_variable_exists(__progname_full HAVE___PROGNAME_FULL)
check_include_files(sys/pstat.h HAVE_SYS_PSTAT_H)
check_include_files(sys/types.h HAVE_SYS_TYPES_H)
check_include_files(unistd.h HAVE_UNISTD_H)
check_function_exists(pstat HAVE_PSTAT)
check_function_exists(setproctitle HAVE_SETPROCTITLE)
# used by 4 executables in this file

View file

@ -2,6 +2,4 @@
/* These are for proctitle.cpp: */
#cmakedefine HAVE___PROGNAME 1
#cmakedefine HAVE___PROGNAME_FULL 1
#cmakedefine HAVE_SYS_PSTAT_H 1
#cmakedefine HAVE_PSTAT 1
#cmakedefine HAVE_SETPROCTITLE 1

View file

@ -30,12 +30,8 @@
#ifdef HAVE_SETPROCTITLE
# define PF_ARGV_TYPE PF_ARGV_NONE
# ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
# endif /* HAVE_SYS_TYPES_H */
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# endif /* HAVE_UNISTD_H */
# include <sys/types.h>
# include <unistd.h>
#endif /* HAVE_SETPROCTITLE */
#ifdef HAVE___PROGNAME