Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2017 21:38:10 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326591 - head/contrib/compiler-rt/lib/builtins
Message-ID:  <201712052138.vB5LcAMx024182@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Dec  5 21:38:10 2017
New Revision: 326591
URL: https://svnweb.freebsd.org/changeset/base/326591

Log:
  This isn't NetBSD specific code. Include these for any kernel /
  standalone use. Tweak for FreeBSD's quirky limits.h stuff.
  
  Sponsored by: Netflix

Modified:
  head/contrib/compiler-rt/lib/builtins/int_lib.h

Modified: head/contrib/compiler-rt/lib/builtins/int_lib.h
==============================================================================
--- head/contrib/compiler-rt/lib/builtins/int_lib.h	Tue Dec  5 21:38:04 2017	(r326590)
+++ head/contrib/compiler-rt/lib/builtins/int_lib.h	Tue Dec  5 21:38:10 2017	(r326591)
@@ -55,12 +55,12 @@
 #define UNUSED __attribute__((unused))
 #endif
 
-#if defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE))
+#if (defined(_KERNEL) || defined(_STANDALONE))
 /*
  * Kernel and boot environment can't use normal headers,
  * so use the equivalent system headers.
  */
-#  include <machine/limits.h>
+#  include <sys/limits.h>
 #  include <sys/stdint.h>
 #  include <sys/types.h>
 #else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712052138.vB5LcAMx024182>