diff --git a/pam_goatherd.c b/pam_goatherd.c
index 2f472b92091004edfb8c829d1c179586420abc9f..b4d3e18162fd6fce93e050a76f949eb88cc1813c 100644
--- a/pam_goatherd.c
+++ b/pam_goatherd.c
@@ -1,3 +1,6 @@
+// exclude this file from `go build`
+// +build ignore
+
 #include <gnutls/gnutls.h>
 #include <gnutls/x509.h>
 #include <sys/socket.h>