From owner-svn-src-all@FreeBSD.ORG Fri Nov 22 20:13:32 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD0FDB0F; Fri, 22 Nov 2013 20:13:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC3BB2BD6; Fri, 22 Nov 2013 20:13:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAMKDWj2033956; Fri, 22 Nov 2013 20:13:32 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAMKDWeH033955; Fri, 22 Nov 2013 20:13:32 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201311222013.rAMKDWeH033955@svn.freebsd.org> From: Gleb Smirnoff Date: Fri, 22 Nov 2013 20:13:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258485 - head/sbin/pfctl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Nov 2013 20:13:32 -0000 Author: glebius Date: Fri Nov 22 20:13:32 2013 New Revision: 258485 URL: http://svnweb.freebsd.org/changeset/base/258485 Log: Remove __FreeBSD__ ifdefs. Modified: head/sbin/pfctl/pfctl.c Modified: head/sbin/pfctl/pfctl.c ============================================================================== --- head/sbin/pfctl/pfctl.c Fri Nov 22 20:11:17 2013 (r258484) +++ head/sbin/pfctl/pfctl.c Fri Nov 22 20:13:32 2013 (r258485) @@ -38,10 +38,7 @@ __FBSDID("$FreeBSD$"); #include #include #include - -#ifdef __FreeBSD__ #include -#endif #include #include @@ -250,10 +247,8 @@ pfctl_enable(int dev, int opts) if (ioctl(dev, DIOCSTART)) { if (errno == EEXIST) errx(1, "pf already enabled"); -#ifdef __FreeBSD__ else if (errno == ESRCH) errx(1, "pfil registeration failed"); -#endif else err(1, "DIOCSTART"); } @@ -2185,7 +2180,7 @@ main(int argc, char *argv[]) /* turn off options */ opts &= ~ (PF_OPT_DISABLE | PF_OPT_ENABLE); clearopt = showopt = debugopt = NULL; -#if defined(__FreeBSD__) && !defined(ENABLE_ALTQ) +#if !defined(ENABLE_ALTQ) altqsupport = 0; #else altqsupport = 1;