[Xfce4-commits] <xfce4-weather-plugin:master> weather-http: Fix compilation with C99.
Harald Judt
noreply at xfce.org
Wed Aug 15 12:16:01 CEST 2012
Updating branch refs/heads/master
to 9c64229317f83c67186a65cc0c271cc5d28cebac (commit)
from 1b5db7a01a1be02ef088ac2defb76fd962c3267b (commit)
commit 9c64229317f83c67186a65cc0c271cc5d28cebac
Author: Harald Judt <h.judt at gmx.at>
Date: Wed Aug 15 12:14:02 2012 +0200
weather-http: Fix compilation with C99.
To be able to compile the plugin with -std=c99, weather-http.c
needs additional #defines too. Let's hope this doesn't break
anything else...
panel-plugin/weather-http.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/weather-http.c b/panel-plugin/weather-http.c
index 4f00e77..a6919b3 100644
--- a/panel-plugin/weather-http.c
+++ b/panel-plugin/weather-http.c
@@ -20,6 +20,13 @@
#include <config.h>
#endif
+/* Some GLIBC library functions require the following #defines to
+ * appear before the appropriate #includes, or compilation might
+ * fail. */
+#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED 1
+#define _BSD_SOURCE
+
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
More information about the Xfce4-commits
mailing list