[PVFS-developers] readlink: making PGI 4.0-2 happy
Robert Latham
robl@mcs.anl.gov
Mon, 2 Feb 2004 14:55:41 -0600
In req.h, the mreq struct defines a 'struct readlink' w/o any members.
The portland group compiler doesn't like this. Any objections to the
following patch? PGI-4.0-2 doesn't like the linux header files in
/usr/include, so this patch is not sufficent to build pvfs itself w/
PGI's compiler. It will, however, make it possible to build
MPICH+ROMIO+PVFS with pgcc.
This introduces yet another change in the network protocol, but leaves
the on-disk format the same.
==rob
Index: include/req.h
===================================================================
RCS file: /projects/cvsroot/pvfs/include/req.h,v
retrieving revision 1.30
diff -u -w -p -r1.30 req.h
--- include/req.h 22 Oct 2003 11:17:46 -0000 1.30
+++ include/req.h 2 Feb 2004 20:37:57 -0000
@@ -133,6 +133,7 @@ struct mreq {
int32_t soft; /* Do we need a hard or soft link? */
} link;
struct {
+ int64_t dummy; /* PGI 4.0-2 doesn't like empty structures */
/* name of the link follows the mreq */
} readlink;
} req;
--
Rob Latham
Mathematics and Computer Science Division A215 0178 EA2D B059 8CDF
Argonne National Labs, IL USA B29D F333 664A 4280 315B