diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-12-22 23:20:00 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-12-22 23:20:00 +0100 |
commit | 127ccb37251744c0fad2df0f3f67dd2c38fe8389 (patch) | |
tree | f20568c75f15fb46055c4de23f6fb63d0755f63f | |
parent | 5406513e997f5ee9de79d4076ae91c04af0c52f6 (diff) | |
download | postgresql-127ccb37251744c0fad2df0f3f67dd2c38fe8389.tar.gz postgresql-127ccb37251744c0fad2df0f3f67dd2c38fe8389.zip |
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
-rw-r--r-- | src/template/cygwin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/template/cygwin b/src/template/cygwin index 79a108145ff..1e7274bc33a 100644 --- 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="" |