]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix Solaris 11.4 compilation by making memset_s() visible
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 Apr 2019 16:10:40 +0000 (18:10 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 Apr 2019 16:10:40 +0000 (18:10 +0200)
Reported-by: Thomas Hildebrandt <thomas.hildebrandt@oracle.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
configure.ac

index dc78bbc5639c8150fccc2eceff9477a1966f7ae7..22a03ab25efb7d5e1114358982c9cb59c8740573 100644 (file)
@@ -44,6 +44,7 @@ case $host_os in
  *solaris*|*sunos*)
     AC_MSG_NOTICE([Applying workaround for broken SunOS time() function])
     AC_DEFINE(HAVE_SUNOS_BROKEN_TIME, 1, [On SunOS time() can go backwards])
+    AC_DEFINE(__STDC_WANT_LIB_EXT1__, 1, [To make memset_s() visible])
     symver_time="openconnect__time;"
     ;;
  *mingw32*|*mingw64*|*msys*)