blob: ea9dccac2826603673f29af1b8331851c2ef75b8 [file] [log] [blame]
Patrick Williams03514f12024-04-05 07:04:11 -05001From 787269b337e70f073e194c3b361eaf4d5f2291ce Mon Sep 17 00:00:00 2001
Andrew Geisslereafcbb82020-06-05 17:59:17 -05002From: Chong Lu <Chong.Lu@windriver.com>
3Date: Thu, 28 May 2020 09:46:34 -0500
4Subject: [PATCH] net-snmp: add knob whether nlist.h are checked
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005
6Previously, it still was checked when there was no nlish.h in sysroots directory.
7Add knob to decide whether nlist.h are checked or not.
8
Patrick Williamsb9af8752023-01-30 13:28:01 -06009Upstream-Status: Pending
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
11Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
12---
Andrew Geisslereafcbb82020-06-05 17:59:17 -050013 configure.d/config_os_headers | 2 ++
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014 1 file changed, 2 insertions(+)
15
16diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers
Patrick Williams03514f12024-04-05 07:04:11 -050017index 584064e..c0688f8 100644
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018--- a/configure.d/config_os_headers
19+++ b/configure.d/config_os_headers
Andrew Geisslerd688a012020-09-18 13:36:00 -050020@@ -37,6 +37,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl
21 [sys/timeb.h ])
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022
23 # Library and Agent:
24+if test "x$with_elf" != "xno"; then
25 AC_CHECK_HEADERS([nlist.h],,,[
26 AC_INCLUDES_DEFAULT
27 [
Andrew Geisslerd688a012020-09-18 13:36:00 -050028@@ -44,6 +45,7 @@ AC_INCLUDES_DEFAULT
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029 #define LIBBSD_DISABLE_DEPRECATED 1
30 #endif
31 ]])
32+fi
33
34 # Library:
Andrew Geisslerd688a012020-09-18 13:36:00 -050035 AC_CHECK_HEADERS([crt_externs.h ] dnl
Patrick Williams03514f12024-04-05 07:04:11 -050036--
372.25.1
38