Date: Tue, 23 Feb 2010 02:27:26 GMT From: Rob Farmer <rfarmer@predatorlabs.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/144221: [PATCH] net/openldap24-server Fix build with new GCC Message-ID: <201002230227.o1N2RQ08037475@www.freebsd.org> Resent-Message-ID: <201002230230.o1N2U26V033183@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 144221 >Category: ports >Synopsis: [PATCH] net/openldap24-server 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: Tue Feb 23 02:30:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Rob Farmer >Release: 9.0-CURRENT >Organization: >Environment: FreeBSD thinkpad.predatorlabs.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r204181: Sun Feb 21 15:33:31 PST 2010 rfarmer@thinkpad.predatorlabs.net:/obj/usr/src/sys/THINKPAD i386 >Description: Remove a branch of code that GCC 4.4/4.5 don't like. This code is never reached on FreeBSD so there should be no functional changes. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: files/patch-libraries-liblutil-detach.c =================================================================== RCS file: files/patch-libraries-liblutil-detach.c diff -N files/patch-libraries-liblutil-detach.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-libraries-liblutil-detach.c 22 Feb 2010 12:43:48 -0000 @@ -0,0 +1,14 @@ +--- libraries/liblutil/detach.c.orig 2010-02-22 04:42:35.000000000 -0800 ++++ libraries/liblutil/detach.c 2010-02-22 04:42:58.000000000 -0800 +@@ -128,11 +128,6 @@ + + #ifdef HAVE_SETSID + (void) setsid(); +-#elif TIOCNOTTY +- if ( (sd = open( "/dev/tty", O_RDWR )) != -1 ) { +- (void) ioctl( sd, TIOCNOTTY, NULL ); +- (void) close( sd ); +- } + #endif + } + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002230227.o1N2RQ08037475>