OS X support

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

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

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

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

Loading…
Cancel
Save