]> code.delx.au - spectrwm/commitdiff
*sigh* work around linking retardation
authorMarco Peereboom <marco@conformal.com>
Wed, 25 Nov 2009 16:12:13 +0000 (16:12 +0000)
committerMarco Peereboom <marco@conformal.com>
Wed, 25 Nov 2009 16:12:13 +0000 (16:12 +0000)
osx/Makefile
osx/osx.c
osx/osx.h [moved from osx/util.h with 100% similarity]
scrotwm.c

index 532b8af9cf251c457de9fbd3fc2694cc843b225d..34e749e3141063690f54248d046e364ac852eab1 100644 (file)
@@ -1,6 +1,6 @@
 # $scrotwm$ 
 
-CFLAGS+= -O2 -Wall -ggdb -D_GNU_SOURCE -I.
+CFLAGS+= -O2 -Wall -ggdb -D_GNU_SOURCE -D__OSX__ -I.
 CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\"
 LDADD+=  -L/usr/X11/lib/ -lX11 -lXrandr
 
index 4d27aa8bdd6f56bc2ce1780c8491c1e7d4180f60..2726b74ca7ec733861e82df55ef82816ded8e95b 100644 (file)
--- a/osx/osx.c
+++ b/osx/osx.c
@@ -10,7 +10,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "util.h"
+#include "osx.h"
 
 /* --------------------------------------------------------------------------- */
 /*     $OpenBSD: strtonum.c,v 1.6 2004/08/03 19:38:01 millert Exp $    */
similarity index 100%
rename from osx/util.h
rename to osx/osx.h
index b0123899b977ab5b851d35d9276683d94a26a916..c071784105f9c25f45d1ad4d7d767435109bcdef 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -84,6 +84,10 @@ static const char    *cvstag = "$scrotwm$";
 #include <X11/Xutil.h>
 #include <X11/extensions/Xrandr.h>
 
+#ifdef __OSX__
+#include <osx.h>
+#endif
+
 #if RANDR_MAJOR < 1
 #  error XRandR versions less than 1.0 are not supported
 #endif