# USA
AC_PREREQ(2.61)
-AC_INIT([GnuTLS], [3.0.12], [bug-gnutls@gnu.org])
+AC_INIT([GnuTLS], [3.0.13], [bug-gnutls@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
dnl No fork on MinGW, disable some self-tests until we fix them.
-AC_CHECK_FUNCS([fork getrusage getpwuid_r daemon],,)
+AC_CHECK_FUNCS([fork getrusage getpwuid_r daemon fchmod],,)
AM_CONDITIONAL(HAVE_FORK, test "$ac_cv_func_fork" != "no")
AC_LIB_HAVE_LINKFLAGS(pthread,, [#include <pthread.h>], [pthread_mutex_lock (0);])
# include <sys/procset.h>
#endif
#include <sys/stat.h>
-#include <sys/wait.h>
+#ifdef HAVE_SYS_WAIT_H
+# include <sys/wait.h>
+#endif
#if defined( HAVE_SOLARIS_SYSINFO )
# include <sys/systeminfo.h>
* err: @code{NULL} is returned if the string is mal-formed.
=*/
unsigned int
-ao_string_cook_escape_char( char const* pzIn, char* pRes, u_int nl )
+ao_string_cook_escape_char( char const* pzIn, char* pRes, unsigned nl )
{
unsigned int res = 1;
* THEN we do the full escape character processing
*/
else if (q != '\'') {
- int ct = ao_string_cook_escape_char( pzS, pzD-1, (u_int)'\n' );
+ int ct = ao_string_cook_escape_char( pzS, pzD-1, (unsigned)'\n' );
if (ct == 0)
return NULL;
printf("\nenv | grep '^%s_'\n", pOpts->pzPROGNAME);
fflush(stdout);
+#ifdef HAVE_FCHMOD
fchmod(STDOUT_FILENO, 0755);
+#endif
fclose(stdout);
if (ferror(stdout)) {
fputs(zOutputFail, stderr);
if (rdct <= 0) {
mapinfo->txt_errno = errno;
fprintf(stderr, zFSErrReadFile,
- errno, strerror(errno), pzFile);
+ errno, strerror(errno), "mapped file");
free(mapinfo->txt_data);
return;
}