Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 2010 23:00:01 GMT
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/143747: [PATCH] ports-mgmt/portdowngrade Fix build with new GCC
Message-ID:  <201002102300.o1AN01aP040106@www.freebsd.org>
Resent-Message-ID: <201002110141.o1B1fVQQ060376@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         143747
>Category:       ports
>Synopsis:       [PATCH] ports-mgmt/portdowngrade Fix build with new GCC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 11 01:41:30 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Rob Farmer
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD coretwo.predatorlabs.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r203695: Tue Feb  9 03:02:13 PST 2010     rfarmer@coretwo.predatorlabs.net:/usr/obj/usr/src/sys/CORETWO  amd64
>Description:
Add some missing includes to please newer versions of GCC
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: files/patch-portdowngrade.cpp
===================================================================
RCS file: files/patch-portdowngrade.cpp
diff -N files/patch-portdowngrade.cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-portdowngrade.cpp	10 Feb 2010 07:04:30 -0000
@@ -0,0 +1,11 @@
+--- portdowngrade/portdowngrade.cpp.orig	2004-12-28 00:34:52.000000000 -0800
++++ portdowngrade/portdowngrade.cpp	2010-02-09 23:04:21.480393138 -0800
+@@ -28,6 +28,8 @@
+ #include <dirent.h>
+ #include <termios.h>
+ #include <fcntl.h>
++#include <string.h>
++#include <limits.h>
+ #ifndef TIOCGWINSIZE
+ #include <sys/ioctl.h>
+ #endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002102300.o1AN01aP040106>