Skip to content

Commit

Permalink
Including <sys/termios.h> on FreeBSD throws a warning. This warning b…
Browse files Browse the repository at this point in the history
…reaks

the build. Patch fixes that.
  • Loading branch information
rodent committed Mar 25, 2015
1 parent 8cffe78 commit 2d6ef54
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgtools/pkgin/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.34 2015/03/08 17:57:42 imil Exp $
$NetBSD: distinfo,v 1.35 2015/03/25 02:10:01 rodent Exp $

SHA1 (2e1630265953c9c01836a4b62acfa8397579346a.tar.gz) = 7c2256c6d3da3913735876ee98349714a3d3dd2e
RMD160 (2e1630265953c9c01836a4b62acfa8397579346a.tar.gz) = c458ec864925694790cb6202acc4c042d437b401
Size (2e1630265953c9c01836a4b62acfa8397579346a.tar.gz) = 197231 bytes
SHA1 (patch-external_progressmeter.h) = 76c272c68eab4769d02e21748037933e5cea6c38
15 changes: 15 additions & 0 deletions pkgtools/pkgin/patches/patch-external_progressmeter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$NetBSD: patch-external_progressmeter.h,v 1.1 2015/03/25 02:10:02 rodent Exp $

Including sys/termios.h on FreeBSD throws a warning and breaks the build.

--- external/progressmeter.h.orig 2015-03-08 17:49:37.000000000 +0000
+++ external/progressmeter.h
@@ -26,7 +26,7 @@

#include "config.h"

-#ifdef HAVE_SYS_TERMIOS_H
+#if defined(HAVE_SYS_TERMIOS_H) && !defined(__FreeBSD__)
#include <sys/termios.h>
#elif HAVE_TERMIOS_H
#include <termios.h>

0 comments on commit 2d6ef54

Please sign in to comment.