Skip to content

Commit 127ccb3

Browse files
committed
Fix compiler warning for ppoll() on Cygwin
_GNU_SOURCE is required to get the prototype, so just define that globally, as was already done in the linux template. Discussion: https://www.postgresql.org/message-id/flat/6b467edc-4018-521f-ab18-171f098557ca%402ndquadrant.com
1 parent 5406513 commit 127ccb3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/template/cygwin

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
SRCH_LIB="/usr/local/lib"
44

5+
# This is required for ppoll(2), and perhaps other things
6+
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7+
58
# Extra CFLAGS for code that will go into a shared library
69
CFLAGS_SL=""
710

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