From owner-freebsd-gnome Fri Jan 24 17:39: 3 2003 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 395A437B401 for ; Fri, 24 Jan 2003 17:39:01 -0800 (PST) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4676E43F5B for ; Fri, 24 Jan 2003 17:39:00 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.12.6/8.12.6) with ESMTP id h0P1bODx069042; Fri, 24 Jan 2003 20:37:24 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: question about timeval in gaim-cvs.. From: Joe Marcus Clarke To: "Mezz bsdforums.org" Cc: FreeBSD GNOME Users In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bvrAK6iA21hsXFKyFNqT" Organization: MarcusCom, Inc. Message-Id: <1043458738.12343.6.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 24 Jan 2003 20:38:59 -0500 Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-bvrAK6iA21hsXFKyFNqT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2003-01-24 at 20:13, Mezz bsdforums.org wrote: > Today, I upgraded gaim-cvs and compile on my own. I got error by related=20 > with timeval like this.. >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > BROKEN -I/usr/local/include -c proxy.c > proxy.c: In function `gaim_gethostbyname_async': > proxy.c:427: variable `tv' has initializer but incomplete type > proxy.c:427: unknown field `tv_sec' specified in initializer > proxy.c:427: warning: excess elements in struct initializer > proxy.c:427: warning: (near initialization for `tv') > proxy.c:427: unknown field `tv_usec' specified in initializer > proxy.c:427: warning: excess elements in struct initializer > proxy.c:427: warning: (near initialization for `tv') > proxy.c:427: storage size of `tv' isn't known > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > So, I figured out to solve it by added "#include ". My questi= on=20 > is which way is better or correct? >=20 > struct timeval tv =3D { .tv_sec =3D 40 , .tv_usec =3D 0 }; I've never used this syntax myself. >=20 > or >=20 > struct timeval tv; > tv.tv_sec =3D 40; > tv.tv_usec =3D 0; This is what I'm more used to. >=20 > The first one is what gaim-cvs has, so if second one is better then I can= =20 > email to gaim about bug of forgot to add include sys/time.h and tweak (if= =20 > need) the timeval part. I don't program anything in C, but able to guess = in=20 > somehow. :-) It's really up to the programmer. However, getting them to check for, and add sys/time.h if it exists is a good idea. Joe >=20 > Cheers, > Mezz >=20 > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* =20 > http://join.msn.com/?page=3Dfeatures/junkmail >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-gnome" in the body of the message --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-bvrAK6iA21hsXFKyFNqT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+Meqyb2iPiv4Uz4cRApVFAJsGBzeK17oUgbS0lRN8ARlmJdlYewCfUac6 DOv/edCFRVD8bMBRgFqukKw= =LfVx -----END PGP SIGNATURE----- --=-bvrAK6iA21hsXFKyFNqT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message