File:  [cvs.NetBSD.org] / pkgsrc / devel / libstatgrab / patches / patch-src_libstatgrab_tools.h
Revision 1.2: download - view: text, annotated - select for diffs
Fri May 22 13:45:11 2020 UTC (4 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD
Use uvm/uvm_extern.h directly on NetBSD.

$NetBSD: patch-src_libstatgrab_tools.h,v 1.2 2020/05/22 13:45:11 joerg Exp $

Add include for LOCK_SH
--- src/libstatgrab/tools.h.orig	2019-07-16 16:05:37.000000000 +0000
+++ src/libstatgrab/tools.h
@@ -36,6 +36,10 @@
 # include <sys/stat.h>
 #endif
 
+#if defined(__sun)
+#include <sys/file.h>
+#endif
+
 #include <stdio.h>
 #ifdef STDC_HEADERS
 # include <assert.h>
@@ -252,6 +256,9 @@ extern "C" strcasecmp(const char *s1, co
 #ifdef HAVE_UVM_UVM_H
 # include <uvm/uvm.h>
 #endif
+#ifdef HAVE_UVM_UVM_EXTERN_H
+# include <uvm/uvm_extern.h>
+#endif
 #ifdef HAVE_SYS_VMMETER_H
 #include <sys/vmmeter.h>
 #endif

CVSweb <webmaster@jp.NetBSD.org>