Skip to content

Commit b182a4a

Browse files
committed
Don't include sys/poll.h anymore.
poll.h is mandated by Single Unix Spec v2, the usual baseline for postgres on unix. None of the unixoid buildfarms animals has sys/poll.h but not poll.h. Therefore there's not much point to test for sys/poll.h's existence and include it optionally. Author: Andres Freund, per suggestion from Tom Lane Discussion: https://postgr.es/m/20505.1492723662@sss.pgh.pa.us
1 parent eb97aa7 commit b182a4a

File tree

6 files changed

+2
-14
lines changed

6 files changed

+2
-14
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10600,7 +10600,7 @@ fi
1060010600
## Header files
1060110601
##
1060210602

10603-
for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10603+
for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
1060410604
do :
1060510605
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1060610606
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ AC_SUBST(UUID_LIBS)
11791179
## Header files
11801180
##
11811181

1182-
AC_CHECK_HEADERS([atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h])
1182+
AC_CHECK_HEADERS([atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h])
11831183

11841184
# On BSD, test for net/if.h will fail unless sys/socket.h
11851185
# is included first.

src/backend/storage/ipc/latch.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
#ifdef HAVE_POLL_H
4343
#include <poll.h>
4444
#endif
45-
#ifdef HAVE_SYS_POLL_H
46-
#include <sys/poll.h>
47-
#endif
4845

4946
#include "miscadmin.h"
5047
#include "pgstat.h"

src/include/pg_config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,6 @@
557557
/* Define to 1 if you have the <sys/ipc.h> header file. */
558558
#undef HAVE_SYS_IPC_H
559559

560-
/* Define to 1 if you have the <sys/poll.h> header file. */
561-
#undef HAVE_SYS_POLL_H
562-
563560
/* Define to 1 if you have the <sys/pstat.h> header file. */
564561
#undef HAVE_SYS_PSTAT_H
565562

src/include/pg_config.h.win32

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,6 @@
417417
/* Define to 1 if you have the <sys/ipc.h> header file. */
418418
/* #undef HAVE_SYS_IPC_H */
419419

420-
/* Define to 1 if you have the <sys/poll.h> header file. */
421-
/* #undef HAVE_SYS_POLL_H */
422-
423420
/* Define to 1 if you have the <sys/pstat.h> header file. */
424421
/* #undef HAVE_SYS_PSTAT_H */
425422

src/interfaces/libpq/fe-misc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
#ifdef HAVE_POLL_H
4747
#include <poll.h>
4848
#endif
49-
#ifdef HAVE_SYS_POLL_H
50-
#include <sys/poll.h>
51-
#endif
5249
#ifdef HAVE_SYS_SELECT_H
5350
#include <sys/select.h>
5451
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy