projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
| inline |
side by side
(parent:
5406513
)
Fix compiler warning for ppoll() on Cygwin
author
Peter Eisentraut
<
[email protected]
>
Sun, 22 Dec 2019 22:20:00 +0000
(23:20 +0100)
committer
Peter Eisentraut
<
[email protected]
>
Sun, 22 Dec 2019 22:20:00 +0000
(23:20 +0100)
_GNU_SOURCE is required to get the , 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
src/template/cygwin
|
blob
|
blame
|
history
diff --git
a/src/template/cygwin
b/src/template/cygwin
index 79a108145ff0b0ec9cd133e38952b48d663724b5..1e7274bc33a5ebe500e1386d34224864789852ea 100644
(file)
--- a/
src/template/cygwin
+++ b/
src/template/cygwin
@@
-2,6
+2,9
@@
SRCH_LIB="/usr/local/lib"
+# This is required for ppoll(2), and perhaps other things
+CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+
# Extra CFLAGS for code that will go into a shared library
CFLAGS_SL=""