Feature test for poll.h

This commit is contained in:
Chase
2025-11-28 14:05:59 -05:00
committed by Jon Trulson
parent 0dc238d08e
commit e64189f19d
9 changed files with 51 additions and 13 deletions

View File

@@ -41,12 +41,19 @@
*+ENOTICE
*/
#if HAVE_CONFIG_H
#include <cde_config.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#if HAVE_POLL_H
#include <poll.h>
#elif HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
/*
** file included for INFTIM

View File

@@ -40,13 +40,20 @@
*+ENOTICE
*/
#if HAVE_CONFIG_H
#include <cde_config.h>
#endif
#include <EUSCompat.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#if HAVE_POLL_H
#include <poll.h>
#elif HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
#include <fcntl.h>
#include <assert.h>
#include <signal.h>