aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2003-07-24 23:00:44 +0800
committerosa <osa@FreeBSD.org>2003-07-24 23:00:44 +0800
commita802d325def48332a6cca274b173507ca0b30ea1 (patch)
tree11e5d7dc57141090a13e6c358615ccd9619a3c14 /x11-toolkits
parent9576ae3fbbcda13e56ddebb5b3f1671f2d8ac1e5 (diff)
downloadfreebsd-ports-gnome-a802d325def48332a6cca274b173507ca0b30ea1.tar.gz
freebsd-ports-gnome-a802d325def48332a6cca274b173507ca0b30ea1.tar.zst
freebsd-ports-gnome-a802d325def48332a6cca274b173507ca0b30ea1.zip
Fix building under -CURRENT (gcc 3.3)
Submitted by: Simon Barner <barner@in.tum.de>
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/wmapp/files/patch-wmapp.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11-toolkits/wmapp/files/patch-wmapp.cc b/x11-toolkits/wmapp/files/patch-wmapp.cc
new file mode 100644
index 000000000000..2ed5fd681bfa
--- /dev/null
+++ b/x11-toolkits/wmapp/files/patch-wmapp.cc
@@ -0,0 +1,26 @@
+--- wmapp.cc.orig Wed Jul 23 03:26:58 2003
++++ wmapp.cc Wed Jul 23 03:28:59 2003
+@@ -4,11 +4,9 @@
+
+ using std::string;
+
+-namespace Unix {
+- extern "C" {
+-# include <unistd.h> // for usleep()
+- }
+-};
++extern "C" {
++# include <unistd.h> // for usleep()
++}
+
+ // All the xpms we need:
+ namespace Xpms {
+@@ -254,7 +252,7 @@
+
+ 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();
+