SVN commit 972269 by ossi: clean up includes, check for sys/sockio.h hopefully fixes BUG: 191905 M +1 -0 ConfigureChecks.cmake M +6 -9 backend/choose.c M +3 -0 config-kdm.h.cmake --- trunk/KDE/kdebase/workspace/kdm/ConfigureChecks.cmake #972268:972269 @@ -17,6 +17,7 @@ check_include_files(lastlog.h HAVE_LASTLOG_H) check_include_files(termio.h HAVE_TERMIO_H) check_include_files(termios.h HAVE_TERMIOS_H) +check_include_files(sys/sockio.h HAVE_SYS_SOCKIO_H) check_symbol_exists(sysinfo "sys/sysinfo.h" HAVE_SYSINFO) check_symbol_exists(systeminfo "sys/systeminfo.h" HAVE_SYS_SYSTEMINFO) --- trunk/KDE/kdebase/workspace/kdm/backend/choose.c #972268:972269 @@ -39,13 +39,16 @@ #include "dm_socket.h" #include - -#ifdef __svr4__ +#include +#ifdef HAVE_SYS_SOCKIO_H # include #endif +#ifndef __GNU__ +# include +#endif #include +#include -#include #ifdef STREAMSCONN # ifdef WINTCP /* NCR with Wollongong TCP */ # include @@ -56,12 +59,6 @@ # include #endif -#if !defined(__GNU__) && !defined(__hpux) /* XXX __hpux might be wrong */ -# include -#endif - -#include - typedef struct _Choices { struct _Choices *next; ARRAY8 client; --- trunk/KDE/kdebase/workspace/kdm/config-kdm.h.cmake #972268:972269 @@ -123,6 +123,9 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_TERMIOS_H 1 +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_SOCKIO_H 1 + /* Define to 1 if the ck-connector library is found */ #cmakedefine HAVE_CKCONNECTOR 1