[BACK]Return to patch-ae CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / parallel / clusterit / patches

File: [cvs.NetBSD.org] / pkgsrc / parallel / clusterit / patches / patch-ae (download)

Revision 1.3, Tue Dec 17 06:45:40 2013 UTC (8 years, 11 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, HEAD
Changes since 1.2: +16 -4 lines

No utmp.h on modern FreeBSD, use utmpx.h instead.

$NetBSD: patch-ae,v 1.3 2013/12/17 06:45:40 asau Exp $

--- rvt/command.c.orig	2008-02-27 19:29:48.000000000 +0000
+++ rvt/command.c	2013-12-17 06:36:55.670505584 +0000
@@ -41,7 +41,11 @@
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
+#if defined(__FreeBSD__)
+#include <utmpx.h>
+#else
 #include <utmp.h>
+#endif
 #include <errno.h>
 #include <string.h>
 #include "rvt.h"
@@ -453,7 +457,6 @@
 	unsigned char *s;
 	int count, sv;
 	unsigned char mask = is_eightbit() ? 0xff : 0x7f;
-	extern int errno;
 
 	if (com_stack_top > com_stack)
 		return(*--com_stack_top);