summarylogtreecommitdiffstats
path: root/0005-better-check-for-stpcpy.mingw.patch
blob: 3a81c92a6feddc1e6ad0bc761431fef0aae7efa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- libassuan-2.1.1/configure.ac.orig	2013-10-16 13:46:05.499080800 +0000
+++ libassuan-2.1.1/configure.ac	2013-10-16 13:52:41.672888500 +0000
@@ -380,7 +380,7 @@
 AC_REPLACE_FUNCS(isascii)
 AC_REPLACE_FUNCS(putc_unlocked)
 AC_REPLACE_FUNCS(memrchr)
-AC_REPLACE_FUNCS(stpcpy)
+AC_CHECK_DECLS([stpcpy], [AC_DEFINE([HAVE_STPCPY], [1], [Define to 1 if stpcpy is available])], [AC_LIBOBJ(stpcpy)])
 AC_CHECK_HEADERS(unistd.h)
 AC_REPLACE_FUNCS(setenv)
 AC_REPLACE_FUNCS(vasprintf)