[Pvfs2-cvs] commit by robl in pvfs2-1/src/common/misc: xattr-utils.h xattr-utils.c

CVS commit program cvs at parl.clemson.edu
Wed Oct 4 15:32:26 EDT 2006


Update of /projects/cvsroot/pvfs2-1/src/common/misc
In directory parlweb1:/tmp/cvs-serv24636/src/common/misc

Modified Files:
	xattr-utils.h xattr-utils.c 
Log Message:
small fix to get us building on redhat-7.3 (yes, that's right. we still have at
least one redhat 7.3 user)


Index: xattr-utils.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/common/misc/xattr-utils.h,v
diff -u -w -p -u -r1.2 -r1.3
--- xattr-utils.h	7 Mar 2006 21:35:08 -0000	1.2
+++ xattr-utils.h	4 Oct 2006 19:32:26 -0000	1.3
@@ -10,8 +10,12 @@
 #include "pvfs2-config.h"
 
 #ifndef HAVE_FGETXATTR_PROTOTYPE
+#ifndef HAVE_FGETXATTR_EXTRA_ARGS
 /* prototype taken from fgetxattr(2) on Fedora FC4 */
 ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size);
+#else
+ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size, int pos, int opts);
+#endif
 #endif
 
 #endif

Index: xattr-utils.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/common/misc/xattr-utils.c,v
diff -u -w -p -u -r1.2 -r1.3
--- xattr-utils.c	23 Feb 2006 23:29:25 -0000	1.2
+++ xattr-utils.c	4 Oct 2006 19:32:26 -0000	1.3
@@ -13,7 +13,11 @@
 #include "xattr-utils.h"
 
 #ifndef HAVE_FGETXATTR
+#ifndef HAVE_FGETXATTR_EXTRA_ARGS
 ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size)
+#else
+ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size, int pos, int opts )
+#endif
 {
     errno = ENOSYS;
     return -1;



More information about the Pvfs2-cvs mailing list