JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
*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 [new file with mode: 0644]
osx/util.h [deleted file]
scrotwm.c

index 532b8af..34e749e 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 4d27aa8..2726b74 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 $    */
diff --git a/osx/osx.h b/osx/osx.h
new file mode 100644 (file)
index 0000000..e6d4061
--- /dev/null
+++ b/osx/osx.h
@@ -0,0 +1,3 @@
+/* $scrotwm$ */
+
+long long strtonum(const char *, long long, long long, const char **);
diff --git a/osx/util.h b/osx/util.h
deleted file mode 100644 (file)
index e6d4061..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/* $scrotwm$ */
-
-long long strtonum(const char *, long long, long long, const char **);
index b012389..c071784 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