mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Add support to build using Hombrew on Mac OS X
This commit is contained in:
parent
a483e23e94
commit
8260f53c65
1
Makefile
1
Makefile
@ -17,6 +17,7 @@ OBJS= calmwm.o screen.o xmalloc.o client.o menu.o \
|
||||
CPPFLAGS+= `pkg-config --cflags fontconfig x11 xft xinerama xrandr`
|
||||
|
||||
CFLAGS?= -Wall -O2 -g -D_GNU_SOURCE
|
||||
CFLAGS+= `[ "\`uname -s\`" = "Darwin" ] && echo "-DHAVE_STRLCPY -DHAVE_STRLCAT"`
|
||||
|
||||
LDFLAGS+= `pkg-config --libs fontconfig x11 xft xinerama xrandr`
|
||||
|
||||
|
4
calmwm.h
4
calmwm.h
@ -24,8 +24,12 @@
|
||||
/* prototypes for portable-included functions */
|
||||
char *fgetln(FILE *, size_t *);
|
||||
long long strtonum(const char *, long long, long long, const char **);
|
||||
#ifndef HAVE_STRLCPY
|
||||
size_t strlcpy(char *, const char *, size_t);
|
||||
#endif
|
||||
#ifndef HAVE_STRLCAT
|
||||
size_t strlcat(char *, const char *, size_t);
|
||||
#endif
|
||||
|
||||
#include <X11/XKBlib.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
Loading…
Reference in New Issue
Block a user