[PATCH V2 07/11] NaCl: Enable libc feature test macros

Kevin Cernekee cernekee at gmail.com
Mon Feb 8 22:34:13 PST 2016


This is required to make strndup(), asprintf(), and other GNU functions
work.

Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 55076b1c09ac..7da44dc6f2c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,7 @@ symver_vasprintf=
 symver_win32_strerror=
 
 case $host_os in
- *linux* | *gnu*)
+ *linux* | *gnu* | *nacl*)
     AC_MSG_NOTICE([Applying feature macros for GNU build])
     AC_DEFINE(_POSIX_C_SOURCE, 200112L, [_POSIX_C_SOURCE])
     # For asprintf()
-- 
2.7.0




More information about the openconnect-devel mailing list