Feature test for poll.h
This commit is contained in:
@@ -454,7 +454,7 @@ dnl Used to check if program 'tic' is available to install terminfo files
|
|||||||
AC_CHECK_PROGS(TIC, tic, :)
|
AC_CHECK_PROGS(TIC, tic, :)
|
||||||
|
|
||||||
dnl headers
|
dnl headers
|
||||||
AC_CHECK_HEADERS([locale.h security/pam_appl.h utempter.h])
|
AC_CHECK_HEADERS([locale.h poll.h sys/poll.h security/pam_appl.h utempter.h])
|
||||||
|
|
||||||
dnl Xrender header
|
dnl Xrender header
|
||||||
AC_CHECK_HEADERS([X11/extensions/Xrender.h], [],
|
AC_CHECK_HEADERS([X11/extensions/Xrender.h], [],
|
||||||
|
|||||||
@@ -28,14 +28,19 @@
|
|||||||
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
#include <EUSCompat.h>
|
#include <EUSCompat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <rpc/rpc.h>
|
#include <rpc/rpc.h>
|
||||||
#if !defined(__linux__) && !defined(CSRG_BASED)
|
#if HAVE_POLL_H
|
||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
|
#elif HAVE_SYS_POLL_H
|
||||||
|
# include <sys/poll.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(SunOS)
|
#if defined(SunOS)
|
||||||
#include <netconfig.h>
|
#include <netconfig.h>
|
||||||
|
|||||||
@@ -31,6 +31,9 @@
|
|||||||
* Copyright (c) 1993 by Sun Microsystems, Inc.
|
* Copyright (c) 1993 by Sun Microsystems, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -38,9 +41,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#if defined(__linux__)
|
#if HAVE_SYS_POLL_H
|
||||||
# include <sys/poll.h>
|
# include <sys/poll.h>
|
||||||
#else
|
#elif HAVE_POLL_H
|
||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
@@ -31,12 +31,15 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1990 by Sun Microsystems, Inc.
|
* Copyright (c) 1990 by Sun Microsystems, Inc.
|
||||||
*/
|
*/
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
#include "tt_options.h"
|
#include "tt_options.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "mp/mp_stream_socket.h"
|
#include "mp/mp_stream_socket.h"
|
||||||
#if defined(__linux__)
|
#if HAVE_SYS_POLL_H
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#else
|
#elif HAVE_POLL_H
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -25,9 +25,12 @@
|
|||||||
//%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
//%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||||
//%% (c) Copyright 1993, 1994 Novell, Inc.
|
//%% (c) Copyright 1993, 1994 Novell, Inc.
|
||||||
//%% $TOG: tttk.C /main/5 1999/09/14 13:00:44 mgreess $
|
//%% $TOG: tttk.C /main/5 1999/09/14 13:00:44 mgreess $
|
||||||
#if defined(__linux__)
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_SYS_POLL_H
|
||||||
# include <sys/poll.h>
|
# include <sys/poll.h>
|
||||||
#else
|
#elif HAVE_POLL_H
|
||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -43,13 +43,15 @@
|
|||||||
* Defines a class for browsing the file system mount table.
|
* Defines a class for browsing the file system mount table.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#if defined(__linux__)
|
#if HAVE_SYS_POLL_H
|
||||||
# include <sys/poll.h>
|
# include <sys/poll.h>
|
||||||
#else
|
#elif HAVE_POLL_H
|
||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
@@ -41,12 +41,19 @@
|
|||||||
*+ENOTICE
|
*+ENOTICE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#if HAVE_POLL_H
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
#elif HAVE_SYS_POLL_H
|
||||||
|
#include <sys/poll.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** file included for INFTIM
|
** file included for INFTIM
|
||||||
|
|||||||
@@ -40,13 +40,20 @@
|
|||||||
*+ENOTICE
|
*+ENOTICE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
#include <EUSCompat.h>
|
#include <EUSCompat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#if HAVE_POLL_H
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
#elif HAVE_SYS_POLL_H
|
||||||
|
#include <sys/poll.h>
|
||||||
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|||||||
@@ -87,15 +87,24 @@ extern void unhide_hft_ring();
|
|||||||
|
|
||||||
/* System V Release 4 redefinitions of BSD functions and structures */
|
/* System V Release 4 redefinitions of BSD functions and structures */
|
||||||
|
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include <cde_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (SYSV) || defined (SVR4)
|
#if defined (SYSV) || defined (SVR4)
|
||||||
|
|
||||||
|
#if HAVE_SYS_POLL_H
|
||||||
|
#include <sys/poll.h>
|
||||||
|
#elif HAVE_POLL_H
|
||||||
|
#include <poll.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#define passwd spwd
|
#define passwd spwd
|
||||||
#define pw_passwd sp_pwdp
|
#define pw_passwd sp_pwdp
|
||||||
#if defined(AIXV3)
|
#if defined(AIXV3)
|
||||||
#undef NULL
|
#undef NULL
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
#include <sys/poll.h>
|
|
||||||
|
|
||||||
struct passwd {
|
struct passwd {
|
||||||
char *pw_name;
|
char *pw_name;
|
||||||
@@ -107,7 +116,6 @@ struct passwd {
|
|||||||
char *pw_shell;
|
char *pw_shell;
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
#include <poll.h>
|
|
||||||
#include <shadow.h>
|
#include <shadow.h>
|
||||||
#define getpwnam getspnam
|
#define getpwnam getspnam
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user