[hackers] [wmii] Define _XOPEN_SOURCE to 600 to make glibc happy.

From: Kris Maglione <jg_AT_suckless.org>
Date: Tue Jul 17 03:44:44 2007

changeset: 2198:2c12bfc17f89
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Jul 16 21:44:25 2007 -0400
summary: Define _XOPEN_SOURCE to 600 to make glibc happy.

diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/area.c
--- a/cmd/wmii/area.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/area.c Mon Jul 16 21:44:25 2007 -0400
@@ -2,12 +2,12 @@
  * Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <assert.h>
 #include <math.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#include "dat.h"
 #include "fns.h"
 
 static void place_frame(Frame *f);
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/bar.c
--- a/cmd/wmii/bar.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/bar.c Mon Jul 16 21:44:25 2007 -0400
@@ -2,9 +2,9 @@
  * Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <stdio.h>
 #include <string.h>
-#include "dat.h"
 #include "fns.h"
 
 static Handlers handlers;
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/client.c
--- a/cmd/wmii/client.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/client.c Mon Jul 16 21:44:25 2007 -0400
@@ -2,12 +2,12 @@
  * Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <ctype.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <X11/Xatom.h>
-#include "dat.h"
 #include "fns.h"
 
 #define Mbsearch(k, l, cmp) bsearch(k, l, nelem(l), sizeof(*l), cmp)
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/column.c
--- a/cmd/wmii/column.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/column.c Mon Jul 16 21:44:25 2007 -0400
@@ -2,11 +2,12 @@
  * Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <assert.h>
 #include <math.h>
 #include <stdio.h>
 #include <string.h>
-#include "dat.h"
+#include <strings.h>
 #include "fns.h"
 
 static Image *divimg, *divmask;
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/dat.h
--- a/cmd/wmii/dat.h Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/dat.h Mon Jul 16 21:44:25 2007 -0400
@@ -2,9 +2,10 @@
  * See LICENSE file for license details.
  */
 
-#include <regexp9.h>
+#define _XOPEN_SOURCE 600
 #define IXP_P9_STRUCTS
 #define IXP_NO_P9_
+#include <regexp9.h>
 #include <stdint.h>
 #include <ixp.h>
 #include <util.h>
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/event.c
--- a/cmd/wmii/event.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/event.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,9 +1,9 @@
 /* Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <stdio.h>
 #include <X11/keysym.h>
-#include "dat.h"
 #include "fns.h"
 #include "printevent.h"
 
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/frame.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,9 +1,9 @@
 /* Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <math.h>
 #include <stdio.h>
-#include "dat.h"
 #include "fns.h"
 
 uint
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/fs.c
--- a/cmd/wmii/fs.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/fs.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,15 +1,14 @@
 /* Copyright ©2006 Kris Maglione <fbsdaemon at gmail dot com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <assert.h>
 #include <ctype.h>
-#include <regex.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
-#include "dat.h"
 #include "fns.h"
 
 
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/geom.c
--- a/cmd/wmii/geom.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/geom.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,8 +1,8 @@
 /* Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <stdio.h>
-#include "dat.h"
 #include "fns.h"
 
 Bool
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/key.c
--- a/cmd/wmii/key.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/key.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,10 +1,10 @@
 /* Copyright ©2004-2006 Anselm R. Garbe <garbeam at gmail dot com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <string.h>
 #include <stdlib.h>
 #include <X11/keysym.h>
-#include "dat.h"
 #include "fns.h"
 
 void
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/main.c
--- a/cmd/wmii/main.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/main.c Mon Jul 16 21:44:25 2007 -0400
@@ -2,6 +2,7 @@
  * Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <X11/Xproto.h>
 #include <X11/cursorfont.h>
 #include <errno.h>
@@ -14,7 +15,6 @@
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <unistd.h>
-#include "dat.h"
 #include "fns.h"
 
 static const char
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/map.c
--- a/cmd/wmii/map.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/map.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,8 +1,8 @@
 /* Written by Kris Maglione */
 /* Public domain */
+#include "dat.h"
 #include <stdlib.h>
 #include <string.h>
-#include "dat.h"
 #include "fns.h"
 
 /* Edit s/^([a-zA-Z].*)\n([a-z].*) {/\1 \2;/g x/^([^a-zA-Z]|static|$)/-+d s/ (\*map|val|*str)//g */
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/message.c
--- a/cmd/wmii/message.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/message.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,12 +1,12 @@
 /* Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <assert.h>
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "dat.h"
 #include "fns.h"
 
 static char
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/mouse.c
--- a/cmd/wmii/mouse.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/mouse.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,11 +1,11 @@
 /* Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <assert.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#include "dat.h"
 #include "fns.h"
 
 enum {
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/printevent.c
--- a/cmd/wmii/printevent.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/printevent.c Mon Jul 16 21:44:25 2007 -0400
@@ -39,12 +39,12 @@
  * ken_AT_richsun.UUCP
  */
 
+#include "dat.h"
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <bio.h>
-#include "dat.h"
 //#include "fns.h"
 #include "printevent.h"
 #include <X11/Xproto.h>
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/rule.c
--- a/cmd/wmii/rule.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/rule.c Mon Jul 16 21:44:25 2007 -0400
@@ -3,10 +3,10 @@
  * See LICENSE file for license details.
  */
 
+#include "dat.h"
 #include <assert.h>
 #include <string.h>
 #include <stdlib.h>
-#include "dat.h"
 #include "fns.h"
 
 /* basic rule matching language /regex/ -> value
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/utf.c
--- a/cmd/wmii/utf.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/utf.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,8 +1,8 @@
 /* Public Domain --Kris Maglione */
+#include "dat.h"
 #include <errno.h>
 #include <iconv.h>
 #include <string.h>
-#include "dat.h"
 #include "fns.h"
 
 char*
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/view.c
--- a/cmd/wmii/view.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/view.c Mon Jul 16 21:44:25 2007 -0400
@@ -2,10 +2,10 @@
  * Copyright ©2006-2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#include "dat.h"
 #include "fns.h"
 
 static Bool
diff -r 42cf35f3acd3 -r 2c12bfc17f89 cmd/wmii/x11.c
--- a/cmd/wmii/x11.c Mon Jul 16 16:52:35 2007 -0400
+++ b/cmd/wmii/x11.c Mon Jul 16 21:44:25 2007 -0400
@@ -1,6 +1,7 @@
 /* Copyright ©2007 Kris Maglione <fbsdaemon_AT_gmail.com>
  * See LICENSE file for license details.
  */
+#include "dat.h"
 #include <assert.h>
 #include <math.h>
 #include <stdlib.h>
@@ -8,7 +9,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <bio.h>
-#include "dat.h"
 #include "fns.h"
 
 Point ZP = {0, 0};
Received on Tue Jul 17 2007 - 03:44:44 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:38 UTC