Hello,
I'm trying to compile the following code fragment:
#define _GNU_SOURCE /* required for hurd/signal.h */
#include <hurd.h>
#include <sys/ioctl.h> /* for _IOR, which is expansion of V_GETPARMS */
#include <sys/types.h> /* for u_short */
#include <hurd/store.h> /* for struct store */
#include <hurd/diskfs.h>
#include <mach/i386/disk.h> /* V_GETPARMS */
/* Fill struct disk_params with information from the device underlying
the store STORE */
error_t
store_get_disk_geometry(struct store *store, struct disk_parms *dp)
{
int bufsize=(sizeof (struct disk_parms) / sizeof (int));
/* query device for geometry */
return device_get_status(store->port,V_GETPARMS,dp,&bufsize);
}
Unfortunately, I get this compilation error:
gcc -g -Wall -I/gnu/include geom.c -o geom
geom.c: In function `store_get_disk_geometry':
geom.c:19: `_IOT_disk_parms' undeclared (first use in this function)
geom.c:19: (Each undeclared identifier is reported only once
geom.c:19: for each function it appears in.)
geom.c:19: warning: passing arg 3 of `device_get_status' from incompatible pointer type
I've been trying for many many hours now to track down this
_IOT_disk_parms guy, with no success. What should I include? I'm
getting desperate.
Regards,
Pontus
--
Pontus Lidman, [EMAIL PROTECTED], Software Engineer
No matter how cynical you get, it's impossible to keep up.
Scene: www.dc-s.com | MUD: tyme.envy.com 6969 | irc: irc.quakenet.eu.org
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd