Date: Wed, 23 Jul 2003 15:25:04 +0200 From: Simon Barner <barner@in.tum.de> To: Kris Kennaway <kris@obsecurity.org> Cc: current@FreeBSD.org Subject: Re: Fixing gcc 3.3 compile failures -- fix for x11-toolkits/wmapp Message-ID: <20030723132504.GM566@zi025.glhnet.mhn.de> In-Reply-To: <20030718025200.GA36893@rot13.obsecurity.org> References: <20030718025200.GA36893@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--H7DA0n3a+SnB4bJ2
Content-Type: multipart/mixed; boundary="sBvc846/5FzkyDmz"
Content-Disposition: inline
--sBvc846/5FzkyDmz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
--sBvc846/5FzkyDmz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-wmapp.cc"
Content-Transfer-Encoding: quoted-printable
--- wmapp.cc.orig	Wed Jul 23 03:26:58 2003
+++ wmapp.cc	Wed Jul 23 03:28:59 2003
@@ -4,11 +4,9 @@
=20
 using std::string;
=20
-namespace Unix {
-  extern "C" {
-#   include <unistd.h> // for usleep()
-  }
-};
+extern "C" {
+# include <unistd.h> // for usleep()
+}
=20
 // All the xpms we need:
 namespace Xpms {
@@ -254,7 +252,7 @@
=20
   while (true) {
     // sleep for the specified time in milliseconds
-    Unix::usleep(1000 * current()->updatefreq());
+    usleep(1000 * current()->updatefreq());
     // execute any timed functions which need it
     current()->run_timed_functions();
=20
--sBvc846/5FzkyDmz--
--H7DA0n3a+SnB4bJ2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
iD8DBQE/HoyvCkn+/eutqCoRAkhJAKDvX3D04TWp1aUM74GQtMgrnRztgACgw5Cc
jeyuSr2mj+FegMvYduxwf2w=
=FBzT
-----END PGP SIGNATURE-----
--H7DA0n3a+SnB4bJ2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030723132504.GM566>
