From: Marco Peereboom Date: Mon, 11 Jan 2010 20:44:54 +0000 (+0000) Subject: Make compile in cygwin X-Git-Tag: SCROTWM_0_9_30~78 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/bd9d1208764ff0463f3dcdca1d1329d8e2b7b8a9 Make compile in cygwin --- diff --git a/linux/Makefile b/linux/Makefile index c8dcdc9..54d0aed 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -28,7 +28,7 @@ scrotwm: scrotwm.o linux.o $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@ libswmhack.so.$(LVERS): swm_hack.so - $(CC) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so + $(CC) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD) install: all install -m 755 -d $(DESTDIR)$(BINDIR) @@ -37,6 +37,9 @@ install: all install -m 755 scrotwm $(DESTDIR)$(BINDIR) install -m 755 libswmhack.so.$(LVERS) $(DESTDIR)$(LIBDIR) install -m 644 ../scrotwm.1 $(DESTDIR)$(MANDIR)/man1/scrotwm.1 + install -m 644 ../scrotwm_es.1 $(DESTDIR)$(MANDIR)/man1/scrotwm_es.1 + install -m 644 ../scrotwm_it.1 $(DESTDIR)$(MANDIR)/man1/scrotwm_it.1 + install -m 644 ../scrotwm_ru.1 $(DESTDIR)$(MANDIR)/man1/scrotwm_ru.1 clean: rm -f scrotwm *.o *.so libswmhack.so.* scrotwm.c swm_hack.c diff --git a/linux/util.h b/linux/util.h index 73b0b80..3bc8a20 100644 --- a/linux/util.h +++ b/linux/util.h @@ -14,6 +14,10 @@ char *fparseln(FILE *, size_t *, size_t *, const char [3], int); long long strtonum(const char *, long long, long long, const char **); +#ifndef WAIT_ANY +#define WAIT_ANY (-1) +#endif + /* there is no limit to ulrich drepper's crap */ #ifndef TAILQ_END #define TAILQ_END(head) NULL