Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2017 18:17:53 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r312300 - projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys
Message-ID:  <201701161817.v0GIHrvS083882@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Jan 16 18:17:53 2017
New Revision: 312300
URL: https://svnweb.freebsd.org/changeset/base/312300

Log:
  Use sys/param.h instead of sys/types.h to prep for upstreaming to NetBSD

Modified:
  projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys/t_mlock.c

Modified: projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys/t_mlock.c
==============================================================================
--- projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys/t_mlock.c	Mon Jan 16 18:04:14 2017	(r312299)
+++ projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys/t_mlock.c	Mon Jan 16 18:17:53 2017	(r312300)
@@ -32,7 +32,7 @@
 __RCSID("$NetBSD: t_mlock.c,v 1.6 2016/08/09 12:02:44 kre Exp $");
 
 #ifdef __FreeBSD__
-#include <sys/types.h>
+#include <sys/param.h> /* NetBSD requires sys/param.h for sysctl(3), unlike FreeBSD */
 #endif
 #include <sys/mman.h>
 #include <sys/resource.h>



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