From: David Mosberger-Tang <davidm@azstarnet.com>
Subject: e9025461@student.tuwien.ac.at,axp-list@redhat.com
Date: Sun, 6 Jul 1997 09:56:51 -0700 [thread overview]
Message-ID: <199707061656.JAA09736@panda.mosberger> (raw)
Christian> All I get is:
Christian> In file included from /usr/include/statfsbuf.h:1,
Christian> from /usr/include/sys/statfs.h:26,
Christian> from /usr/include/sys/vfs.h:4,
Christian> from kfsstatus.cpp:34:
Christian> /usr/include/asm/statfs.h:20: syntax error before `;'
Christian> I finally discovered that the problem is "sys/statfs.h". -- This
Christian> file can only be compiled if you compile with the option
Christian> "-D_LOOSE_KERNEL_NAMES".
Christian> This causes the setting of the "__KERNEL_STRICT_NAMES" -- define
Christian> to be suppressed in "features.h". -- If "__KERNEL_STRICT_NAMES"
Christian> is set, "asm/statfs.h" fails to declare the type "__kernel_fsid_t"
Christian> which is causing the error message.
Hmmh, looks like a typo. I'm pretty certain the intent was for
<asm/statfs.h> to look like it does after applying this patch.
--- asm/statfs.h~ Thu Jun 12 15:18:28 1997
+++ asm/statfs.h Sun Jul 6 09:52:17 1997
@@ -1,9 +1,9 @@
#ifndef _ALPHA_STATFS_H
#define _ALPHA_STATFS_H
-#ifndef __KERNEL_STRICT_NAMES
+#include <linux/posix_types.h>
-#include <linux/types.h>
+#ifndef __KERNEL_STRICT_NAMES
typedef __kernel_fsid_t fsid_t;
----
The reason this went undetected for so long is most likely that most
programs that include <vfs.h> include <sys/types.h> beforehand, in
which case the problem vanishes.
--david
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
reply other threads:[~1997-07-06 16:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox