<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
hello maintainers,<br>
while building cairo 1.6.4 i was having
problem regarding regarding ctime_r on solaris-10<br>
someone [adrian johnson]suggested me to apply the below mentioned patch.<br>
<br>
*****<br>
--- configure.in 2008-04-24 20:17:09.000000000 -0400<br>
+++ configure.in 2008-04-11 17:33:05.000000000 -0400<br>
@@ -109,19 +109,7 @@ AC_DEFUN([_CHECK_FUNCS_WITH_FLAGS],<br>
dnl
===========================================================================<br>
<br>
AC_CHECK_FUNCS(vasnprintf ctime_r drand48)<br>
-<br>
+<br>
+AC_MSG_CHECKING([for Sun Solaris (non-POSIX ctime_r)])<br>
+case "$host" in<br>
+ *-*-solaris*)<br>
+ CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"<br>
+ solaris_posix_pthread=yes<br>
+ ;;<br>
+ *)<br>
+ solaris_posix_pthread=no<br>
+ ;;<br>
+esac<br>
+AC_MSG_RESULT([$solaris_posix_pthread])<br>
+<br>
+<br>
dnl
===========================================================================<br>
<br>
dnl<br>
<br>
dnl Test for native atomic operations. <br>
*****<br>
<br>
<b>while applying the patch i am getting the below error:<br>
<br>
patching file configure.in<br>
patch: **** malformed patch at line 12: + CFLAGS="$CFLAGS
-D_POSIX_PTHREAD_SEMANTICS"<br>
<br>
<br>
<br>
####can any one help me what is going wrong as i have properly copied
the patch to file in my source directory and then applying patch
utility.<br>
<br>
any help from anyone ...most welcome<br>
<br>
regards<br>
malay<br>
</b>
</body>
</html>