From owner-svn-src-all@freebsd.org Tue May 31 08:07:42 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CFD9B5534A; Tue, 31 May 2016 08:07:42 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F1FC8173F; Tue, 31 May 2016 08:07:41 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4V87fGr007616; Tue, 31 May 2016 08:07:41 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4V87f1K007615; Tue, 31 May 2016 08:07:41 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201605310807.u4V87f1K007615@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Tue, 31 May 2016 08:07:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301026 - head/sys/sys 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.22 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: Tue, 31 May 2016 08:07:42 -0000 Author: ed Date: Tue May 31 08:07:40 2016 New Revision: 301026 URL: https://svnweb.freebsd.org/changeset/base/301026 Log: Let define struct timespec. POSIX 2004 doesn't require that this header defines struct timespec, but does allow it. For FreeBSD, we would at least need a forward declaration for sched_rr_get_interval(). POSIX 2008 is a bit more demanding, as it now requires that it is declared. Remove the old forward declaration and include the _timespec.h header. This should conform to both POSIX 2004 and 2008 now. Modified: head/sys/sys/sched.h Modified: head/sys/sys/sched.h ============================================================================== --- head/sys/sys/sched.h Tue May 31 07:49:59 2016 (r301025) +++ head/sys/sys/sched.h Tue May 31 08:07:40 2016 (r301026) @@ -222,6 +222,7 @@ struct sched_param { */ #ifndef _KERNEL #include +#include #include #ifndef _PID_T_DECLARED @@ -229,8 +230,6 @@ typedef __pid_t pid_t; #define _PID_T_DECLARED #endif -struct timespec; - __BEGIN_DECLS int sched_get_priority_max(int); int sched_get_priority_min(int);