]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MINOR: auth: enabling for osx
authorDavid Carlier <devnexen@gmail.com>
Sun, 1 Sep 2019 13:59:10 +0000 (14:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 Sep 2019 10:20:13 +0000 (12:20 +0200)
macOS supports this but as part of libc.
Little typo fix while here.

Makefile
src/auth.c

index ec15cbd846a6eda562f65aff7b46c36ffa34e2a2..5fff435725f052ec094ca2a98d0383de4b16030e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -355,7 +355,7 @@ endif
 # Mac OS/X
 ifeq ($(TARGET),osx)
   set_target_defaults = $(call default_opts, \
-    USE_POLL USE_TPROXY USE_KQUEUE)
+    USE_POLL USE_TPROXY USE_LIBCRYPT USE_KQUEUE)
   EXPORT_SYMBOL  = -export_dynamic
 endif
 
@@ -452,8 +452,10 @@ BUILD_FEATURES := $(foreach opt,$(patsubst USE_%,%,$(use_opts)),$(if $(USE_$(opt
 OPTIONS_CFLAGS += $(foreach opt,$(use_opts),$(if $($(opt)),-D$(opt),))
 
 ifneq ($(USE_LIBCRYPT),)
+ifneq ($(TARGET),osx)
 OPTIONS_LDFLAGS += -lcrypt
 endif
+endif
 
 ifneq ($(USE_SLZ),)
 # Use SLZ_INC and SLZ_LIB to force path to zlib.h and libz.{a,so} if needed.
index 0232b569470116dcdbaccdd95f43ebed91ee4bae..1b0f3767b8b220efbefc175864d24c4dd36b92a2 100644 (file)
@@ -49,7 +49,7 @@ __decl_hathreads(static HA_SPINLOCK_T auth_lock);
 #endif
 #endif
 
-/* find targets for selected gropus. The function returns pointer to
+/* find targets for selected groups. The function returns pointer to
  * the userlist struct ot NULL if name is NULL/empty or unresolvable.
  */