Date: Tue, 31 May 2016 08:38:24 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301030 - head/sys/x86/include Message-ID: <201605310838.u4V8cO9I018810@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Tue May 31 08:38:24 2016 New Revision: 301030 URL: https://svnweb.freebsd.org/changeset/base/301030 Log: Add missing dependency on <machine/_limits.h>. In r227474, this header file was changed to define SIG_ATOMIC_{MIN,MAX} in terms of LONG_{MIN,MAX}. Unlike all of the definitions in this header file, LONG_{MIN,MAX} is provided by <limits.h>. Remove the dependency on <limits.h> by using __LONG_{MIN,MAX} instead and including <machine/_limits.h>. This change is needed to make SIG_ATOMIC_{MIN,MAX} work without including any other header files. Modified: head/sys/x86/include/_stdint.h Modified: head/sys/x86/include/_stdint.h ============================================================================== --- head/sys/x86/include/_stdint.h Tue May 31 08:36:39 2016 (r301029) +++ head/sys/x86/include/_stdint.h Tue May 31 08:38:24 2016 (r301030) @@ -40,6 +40,8 @@ #ifndef _MACHINE__STDINT_H_ #define _MACHINE__STDINT_H_ +#include <machine/_limits.h> + #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) #define INT8_C(c) (c) @@ -167,8 +169,8 @@ #define PTRDIFF_MAX INT64_MAX /* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN LONG_MIN -#define SIG_ATOMIC_MAX LONG_MAX +#define SIG_ATOMIC_MIN __LONG_MIN +#define SIG_ATOMIC_MAX __LONG_MAX /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605310838.u4V8cO9I018810>