cygwin-wsock.patch

text/x-patch

Filename: cygwin-wsock.patch
Type: text/x-patch
Part: 0
Message: Re: narwhal and PGDLLIMPORT

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/backend/Makefile 2 0
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 870a022..a991134 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -62,6 +62,8 @@ endif
 
 ifeq ($(PORTNAME), cygwin)
 
+LIBS += -lwsock32 -lws2_32
+
 postgres: $(OBJS)
 	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) -Wl,--stack,$(WIN32_STACK_RLIMIT) -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.a $(call expand_subsys,$^) $(LIBS) -o $@