]> git.hungrycats.org Git - linux/commitdiff
[PATCH] NFS: older gcc's don't like unsized arrays
authorAndrew Morton <akpm@osdl.org>
Thu, 2 Sep 2004 12:05:39 +0000 (05:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Sep 2004 12:05:39 +0000 (05:05 -0700)
The NFS symlink code cleanup causes older gcc's to barf.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfs/symlink.c

index b108b0e00301557ba899c50c84cce15109fa64a1..35f1065991441c3f3d02f6749692da739b8492b3 100644 (file)
@@ -36,7 +36,7 @@
 
 struct nfs_symlink {
        struct page *page;
-       char body[];
+       char body[0];
 };
 
 static int nfs_symlink_filler(struct inode *inode, struct page *page)