svn commit: trunk/uClibc/libpthread/linuxthreads.old

vapier at uclibc.org vapier at uclibc.org
Fri Dec 8 21:24:15 UTC 2006


Author: vapier
Date: 2006-12-08 13:24:15 -0800 (Fri, 08 Dec 2006)
New Revision: 16822

Log:
only define msync cancellation point if the syscall exists

Modified:
   trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c	2006-12-08 21:05:37 UTC (rev 16821)
+++ trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c	2006-12-08 21:24:15 UTC (rev 16822)
@@ -96,9 +96,11 @@
 		    (fd, offset, whence))
 #endif
 
+#ifdef __NR_msync
 /* msync(2).  */
 CANCELABLE_SYSCALL (int, msync, (__ptr_t addr, size_t length, int flags),
 		    (addr, length, flags))
+#endif
 
 
 /* nanosleep(2).  */




More information about the uClibc-cvs mailing list