svn commit: r311968 - head/contrib/netbsd-tests/lib/libc/sys

Ngie Cooper ngie at FreeBSD.org
Thu Jan 12 08:31:43 UTC 2017


Author: ngie
Date: Thu Jan 12 08:31:42 2017
New Revision: 311968
URL: https://svnweb.freebsd.org/changeset/base/311968

Log:
  Fix lib/libc/sys/access_test after r311925
  
  sys/param.h needs to be #included in order for __FreeBSD_version to be checked
  
  MFC after:	13 days

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_access.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_access.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_access.c	Thu Jan 12 08:12:11 2017	(r311967)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_access.c	Thu Jan 12 08:31:42 2017	(r311968)
@@ -1,4 +1,4 @@
-/* $NetBSD: t_access.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */
+/* $NetBSD: t_access.c,v 2.2 2017/01/10 22:36:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -31,6 +31,10 @@
 #include <sys/cdefs.h>
 __RCSID("$NetBSD: t_access.c,v 1.2 2017/01/10 22:36:29 christos Exp $");
 
+#ifdef __FreeBSD__
+#include <sys/param.h> /* For __FreeBSD_version */
+#endif
+
 #include <atf-c.h>
 
 #include <sys/stat.h>


More information about the svn-src-head mailing list