OS X support

pull/1/head
Sean 9 years ago
parent f82dddeeb9
commit 1bacdbc034

@ -41,6 +41,9 @@ endif
ifeq ($(USE_THREADS)-$(SYSTEM),yes-freebsd) ifeq ($(USE_THREADS)-$(SYSTEM),yes-freebsd)
CFLAGS += -DUSE_THREADS=1 -D_REENTRANT -pthread CFLAGS += -DUSE_THREADS=1 -D_REENTRANT -pthread
endif endif
ifeq ($(USE_THREADS)-$(SYSTEM),yes-darwin)
CFLAGS += -DUSE_THREADS=1 -D_REENTRANT -pthread
endif
# OpenSSL yes/no # OpenSSL yes/no

@ -160,7 +160,7 @@ quote(unsigned char *path, int maxlength)
return buf; return buf;
} }
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__)
static void strmode(mode_t mode, char *dest) static void strmode(mode_t mode, char *dest)
{ {
static const char *rwx[] = { static const char *rwx[] = {

@ -132,7 +132,11 @@ config: Make.config
@true @true
Make.config: $(srcdir)/GNUmakefile Make.config: $(srcdir)/GNUmakefile
ifeq ($(UNAME_S),Darwin)
@echo "$(make-config-q)" > $@
else
@echo -e "$(make-config-q)" > $@ @echo -e "$(make-config-q)" > $@
endif
@echo @echo
@echo "Make.config written, edit if needed" @echo "Make.config written, edit if needed"
@echo @echo

Loading…
Cancel
Save