It not only compiles now, but even boots..
CPPFLAGS += -I$(srcdir)/win32
WSRCS = win32service.c
WOBJS = $(WSRCS:.c=.o)
-WHDRS = win32service.h config_win32.h
+WHDRS = win32service.h compat_win32.h
srcs += $(addprefix $(srcdir)/win32/, $(WSRCS))
hdrs += $(addprefix $(srcdir)/win32/, $(WHDRS))
objs += $(addprefix $(builddir)/lib/, $(WOBJS))
/* host= */
if (!host) {
/* default unix socket dir */
- if (!cf_unix_socket_dir) {
+ if (!*cf_unix_socket_dir) {
log_error("skipping database %s because"
" unix socket not configured", name);
return;
exit(0);
}
- if (!WSAStartup(MAKEWORD(2,0), &wsaData))
+ if (WSAStartup(MAKEWORD(2,0), &wsaData))
fatal("Cannot start the network subsystem");
}
#endif
if (cf_listen_addr && !fd_net)
fd_net = create_net_socket(cf_listen_addr, cf_listen_port);
- if (cf_unix_socket_dir && !fd_unix)
+ if (*cf_unix_socket_dir && !fd_unix)
fd_unix = create_unix_socket(cf_unix_socket_dir, cf_listen_port);
if (!fd_net && !fd_unix)