From owner-svn-src-all@FreeBSD.ORG Sun Feb 14 12:00:43 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BA07106588E; Sun, 14 Feb 2010 12:00:43 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EFF558FC27; Sun, 14 Feb 2010 12:00:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1EC0gk3063610; Sun, 14 Feb 2010 12:00:42 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1EC0gf8063608; Sun, 14 Feb 2010 12:00:42 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201002141200.o1EC0gf8063608@svn.freebsd.org> From: Ed Schouten Date: Sun, 14 Feb 2010 12:00:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203862 - head/sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 14 Feb 2010 12:00:43 -0000 Author: ed Date: Sun Feb 14 12:00:42 2010 New Revision: 203862 URL: http://svn.freebsd.org/changeset/base/203862 Log: Make work without including . According to the last POSIX specification that contained , this header should also typedef time_t properly. Also add a proper comment to the final #endif. Modified: head/sys/sys/timeb.h Modified: head/sys/sys/timeb.h ============================================================================== --- head/sys/sys/timeb.h Sun Feb 14 12:00:23 2010 (r203861) +++ head/sys/sys/timeb.h Sun Feb 14 12:00:42 2010 (r203862) @@ -38,6 +38,13 @@ #ifndef _SYS_TIMEB_H_ #define _SYS_TIMEB_H_ +#include + +#ifndef _TIME_T_DECLARED +typedef __time_t time_t; +#define _TIME_T_DECLARED +#endif + /* The ftime(2) system call structure -- deprecated. */ struct timeb { time_t time; /* seconds since the Epoch */ @@ -54,4 +61,4 @@ int ftime(struct timeb *); __END_DECLS #endif /* _KERNEL */ -#endif +#endif /* !_SYS_TIMEB_H_ */