Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-freebsd/freebsd-sources/files: freebsd-sources-9.0-sysctluint.patch
Date: Fri, 25 May 2012 15:28:17
Message-Id: 20120525152806.A1BA02004C@flycatcher.gentoo.org
aballier    12/05/25 15:28:06

  Added:                freebsd-sources-9.0-sysctluint.patch
  Log:
  Make the disable-optimizations patch unconditional and add a patch to allow sys/sysctl.h to be included alone
  
  (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-freebsd/freebsd-sources/files/freebsd-sources-9.0-sysctluint.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-9.0-sysctluint.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-9.0-sysctluint.patch?rev=1.1&content-type=text/plain

Index: freebsd-sources-9.0-sysctluint.patch
===================================================================
u_int is defined in sys/types.h
makes header usable alone.

--- sys/sys/sysctl.h.old	2012-05-25 11:08:53.000000000 -0400
+++ sys/sys/sysctl.h	2012-05-25 11:09:16.000000000 -0400
@@ -788,6 +788,7 @@
 		    struct sysctl_req *);
 #else	/* !_KERNEL */
 #include <sys/cdefs.h>
+#include <sys/types.h> /* for u_int */
 
 __BEGIN_DECLS
 int	sysctl(const int *, u_int, void *, size_t *, const void *, size_t);