Date: Fri, 6 Jan 2017 21:40:30 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r311556 - head/contrib/tcp_wrappers Message-ID: <201701062140.v06LeUWM002670@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Fri Jan 6 21:40:30 2017 New Revision: 311556 URL: https://svnweb.freebsd.org/changeset/base/311556 Log: After r311459, some ports can break, because a few of the newly added prototypes in <tcpd.h> use FILE. Pull in a minimal forward declaration of FILE from <stdio.h> to minimize impact. Sorry for the breakage. Reported by: Shawn Webb <shawn.webb@hardenedbsd.org> X-MFC-With: r311459 Modified: head/contrib/tcp_wrappers/tcpd.h Modified: head/contrib/tcp_wrappers/tcpd.h ============================================================================== --- head/contrib/tcp_wrappers/tcpd.h Fri Jan 6 21:36:51 2017 (r311555) +++ head/contrib/tcp_wrappers/tcpd.h Fri Jan 6 21:40:30 2017 (r311556) @@ -12,6 +12,11 @@ #define TCPD_SOCKADDR struct sockaddr_in #endif +#ifndef _STDFILE_DECLARED +#define _STDFILE_DECLARED +typedef struct __sFILE FILE; +#endif + /* Structure to describe one communications endpoint. */ #define STRING_LENGTH 128 /* hosts, users, processes */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701062140.v06LeUWM002670>