From: Marco Peereboom Date: Wed, 25 Nov 2009 16:12:13 +0000 (+0000) Subject: *sigh* work around linking retardation X-Git-Tag: SCROTWM_0_9_30~83 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/c5b4485b9e45b69fc5fde394ad0904d4bffc4c29 *sigh* work around linking retardation --- diff --git a/osx/Makefile b/osx/Makefile index 532b8af..34e749e 100644 --- a/osx/Makefile +++ b/osx/Makefile @@ -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 diff --git a/osx/osx.c b/osx/osx.c index 4d27aa8..2726b74 100644 --- a/osx/osx.c +++ b/osx/osx.c @@ -10,7 +10,7 @@ #include #include -#include "util.h" +#include "osx.h" /* --------------------------------------------------------------------------- */ /* $OpenBSD: strtonum.c,v 1.6 2004/08/03 19:38:01 millert Exp $ */ diff --git a/osx/util.h b/osx/osx.h similarity index 100% rename from osx/util.h rename to osx/osx.h diff --git a/scrotwm.c b/scrotwm.c index b012389..c071784 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -84,6 +84,10 @@ static const char *cvstag = "$scrotwm$"; #include #include +#ifdef __OSX__ +#include +#endif + #if RANDR_MAJOR < 1 # error XRandR versions less than 1.0 are not supported #endif