Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 glaurung (2.2-3) unstable; urgency=medium
 .
   * QA upload.
   * Set maintainer to the QA group.
   * Priority optional, standards, R³, dh 12, build-arch, format 3.0.
   * Work around --as-needed regression in gcc-9. (Closes: #925696)
   * Drop Homepage -- taken over by a payday loan scammer.
   * Drop redundant noopt handling (it's broken anyway, too...).
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #900215)
Author: Adam Borowski <kilobyte@angband.pl>
Bug-Debian: https://bugs.debian.org/900215
Bug-Debian: https://bugs.debian.org/925696

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-11-03

--- glaurung-2.2.orig/src/Makefile
+++ glaurung-2.2/src/Makefile
@@ -53,7 +53,7 @@ CXX = g++
 ###
 
 $(EXE): $(OBJS)
-	$(CXX) $(LDFLAGS) -o $@ $(OBJS)
+	$(CXX) $(LDFLAGS) -o $@ $(OBJS) -pthread
 
 .depend:
 	$(CXX) -MM $(OBJS:.o=.cpp) > $@
--- glaurung-2.2.orig/src/main.cpp
+++ glaurung-2.2/src/main.cpp
@@ -23,6 +23,7 @@
 
 #include <cstdlib>
 #include <iostream>
+#include <cstdio>
 
 #include "benchmark.h"
 #include "bitboard.h"
