Skip to content

Commit

Permalink
gpgme: Use _DARWIN_C_SOURCE and put it in CPPFLAGS
Browse files Browse the repository at this point in the history
_POSIX_C_SOURCE=200112L is too restrictive.

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
  • Loading branch information
jeremyhu committed Feb 14, 2017
1 parent 65e35d0 commit 2bc5a8b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions devel/gpgme/Portfile
Expand Up @@ -58,17 +58,13 @@ autoreconf.args -fvi
lappend languages cl
# quiet various implicit function declaration warnings
# see /usr/include/sys/cdefs.h
configure.cflags-append -D_POSIX_C_SOURCE=200112L
configure.cppflags-append -D_DARWIN_C_SOURCE

# cpp bindings require libc++

platform darwin {
if {${configure.cxx_stdlib} eq "libc++"} {
lappend languages cpp
# fix C++ bindings build failure in 1.8.0+
# keygenerationresult.cpp:43:23: error: use of undeclared identifier 'strdup'
# see /usr/include/sys/cdefs.h
configure.cxxflags-append -D_POSIX_C_SOURCE=200112L
}
}

Expand Down

0 comments on commit 2bc5a8b

Please sign in to comment.