Description: Build also on GNU/kfreeBSD
Author: Juhani Numminen <juhaninumminen0@gmail.com>

--- vpcs-0.5b0.orig/src/daemon.c
+++ vpcs-0.5b0/src/daemon.c
@@ -51,7 +51,7 @@
 
 #ifdef Darwin
 #include <util.h>
-#elif Linux
+#elif Linux || GNUkFreeBSD
 #include <pty.h>
 #elif FreeBSD
 #include <libutil.h>
--- vpcs-0.5b0.orig/src/hv.c
+++ vpcs-0.5b0/src/hv.c
@@ -55,7 +55,7 @@
 
 #ifdef Darwin
 #include <util.h>
-#elif Linux
+#elif Linux || GNUkFreeBSD
 #include <pty.h>
 #elif FreeBSD
 #include <libutil.h>
@@ -389,7 +389,7 @@ run_vpcs(int ac, char **av)
 	
 	/* reinitialized, maybe call getopt twice */
 	optind = 1;
-#if (defined(FreeBSD) || defined(Darwin))
+#if ((!defined(GNUkFreeBSD) && defined(FreeBSD)) || defined(Darwin))
 	optreset = 1;
 #endif	
 	while ((c = getopt(ac, av, "p:m:s:c:")) != -1) {
