Subject: linuuid doesn't compile
To: None <tech-pkg@netbsd.org>
From: haad <haaaad@gmail.com>
List: tech-pkg
Date: 01/31/2006 15:30:12
This is a multi-part message in MIME format.
--------------080308010005000100010209
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I try to install wip/libuuid and it crash with this error

CC ./ismounted.c
ismounted.c: In function `check_getmntinfo':
ismounted.c:204: warning: passing arg 1 of `getmntinfo' from
incompatible pointer type
ismounted.c:215: error: dereferencing pointer to incomplete type
ismounted.c:224: error: increment of pointer to unknown structure
ismounted.c:224: error: arithmetic on pointer to an incomplete type
ismounted.c:227: error: dereferencing pointer to incomplete type
*** Error code 1

attached path solved this problem .

- --
Adam Hamsik
tel.c 0904 937 495
ICQ 249727910
jabber haad@jabber.org
- --------------------------------------------------------------
There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
				
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD33Rz9Wt2FT7y228RAsyaAKCw03WOuT9giqZyNDEeArJlqCxdwwCgn8Ig
byJh8q2mw6WjWlCPkcDH0b0=
=oYt3
-----END PGP SIGNATURE-----

--------------080308010005000100010209
Content-Type: text/plain;
 name="uuid_ismounted.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="uuid_ismounted.diff"

--- ismounted.c.old	2006-01-31 15:03:59.000000000 +0100
+++ ismounted.c	2006-01-31 15:04:40.000000000 +0100
@@ -196,7 +196,7 @@ static errcode_t check_mntent(const char
 static errcode_t check_getmntinfo(const char *file, int *mount_flags,
 				  char *mtpt, int mtlen)
 {
-	struct statfs *mp;
+	struct statvfs *mp;
         int    len, n;
         const  char   *s1;
 	char	*s2;

--------------080308010005000100010209--