[Linux-cluster] [PATCH] Fix build failure for gettid.c

Fabio Massimo Di Nitto fabbione at fabbione.net
Tue Jun 13 06:22:51 UTC 2006


diff -urNad --exclude=CVS --exclude=.svn ./rgmanager/src/clulib/gettid.c
/usr/src/dpatchtemp/dpep-work.JDJ8Uk/redhat-cluster-suite-1.20050706/rgmanager/src/c
lulib/gettid.c
--- ./rgmanager/src/clulib/gettid.c     2005-06-21 20:07:33.000000000 +0200
+++
/usr/src/dpatchtemp/dpep-work.JDJ8Uk/redhat-cluster-suite-1.20050706/rgmanager/src/clulib/gettid.c
 2005-07-06 06:40:22.000000000 +0200
@@ -1,7 +1,9 @@
 #include <sys/types.h>
+#include <sys/syscall.h>
 #include <linux/unistd.h>
 #include <gettid.h>
 #include <errno.h>
+#include <unistd.h>

 /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */


This applies to the above in the STABLE branch and HEAD. The same fix needs to
be propagated to cman/qdisk/gettid.c for HEAD (yay for duplicate code ;)).

Fabio

-- 
I'm going to make him an offer he can't refuse.




More information about the Linux-cluster mailing list