From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72228 invoked by alias); 20 Apr 2017 14:31:25 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 71965 invoked by uid 89); 20 Apr 2017 14:31:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-25.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: EUR02-AM5-obe.outbound.protection.outlook.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtcompany.onmicrosoft.com; s=selector1-qt-io; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5QydmQNQdb7SWw70nXqLANjIEkEuaC6XbeoDI/uoaes=; b=Xl6YI2K95F/meUwAutmAaukACpm+bY90HYwM7vpuHWFBydjO1gM68AIcDMRutRdw6ZZS/4HLHF3KPy/seXCKwl4tphSfKq1haRD7gBaV+LLeS1KRuKWax5fhpm+gjUkP2OqFz6/6IREmfozbAlKwkH/DCtUtOxC/96AMguRNWA8= Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=qt.io; From: Ulf Hermann Subject: [PATCH] Avoid double-including config.h To: Message-ID: <5ee0f1d0-f5be-29d2-6c7c-d1fcae93003c@qt.io> Date: Thu, 20 Apr 2017 14:31:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [62.220.2.194] X-ClientProxiedBy: HE1PR0101CA0004.eurprd01.prod.exchangelabs.com (10.168.141.142) To AM4PR0201MB1857.eurprd02.prod.outlook.com (10.168.1.147) X-MS-Office365-Filtering-Correlation-Id: 571d2bc3-21e1-4690-ed7c-08d487f9e225 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:AM4PR0201MB1857; X-Microsoft-Exchange-Diagnostics: 1;AM4PR0201MB1857;3:4eGlz1d3E/JAw4e4VeaPxWPPsRCAncCgmVyvJ4iK+3pAlmLiBV+ewPPdvPOssFULQCUMlEcj38CdR6Lx5QG9ZaKGatZLyPza0Cz+30EZSeajOUTXmLog/3PU3vF2/wMoqNbtzO8ZmIwEz/0yiV041MUn4ZE8UtZeK0DDR07ChEDP63MtIKFB4SS3/qosI2nGDJOWoyHle1x4uEQkcm+cQl7hDHAS+MFNl6P1cX0laisvGhIKkNMH1lxM10PT8IAZpa2AQ/rxFukrdrBEGee3pBvmRccrIktk3uhBZvjt+9HkyFIuabr+9uzwvA2Afo4gg/TjOSBbvk7vvXbr+xR4tw==;25:FpvvN/9t1mD1VXQ8rHbbPfxLN+ogJYH3Yl92TB7uyFHJawoJ8w3/rQYVXWXed/07ENLaU8mMRbiVGlA+aV4n4fdoMWWFIlkD5mi9fLObrgy2BsDijjIN7VjGT0ALy2/UMC6gpWaAIh6vm9sMkkf/I2KK1iP+6puOR5oMLS/RmNhXCklekJ+94WQB8JpCP32f7cviRtPQmRXc4QBKht8sZtiB+U/4Z1X78du+WdB56njYo3IgmQPsgbrepbxzv7E1m/9yAZA51DYdUqMnX1/JrxmDxXaEMc+lTCsXRtnhMwa79Q42ANxNDaPR1PUzC+HadOPRQucS71HhuyWJU39dWgwlShXFddpVRsq8ZV5nAaOlfyJNiEUneyxxBroa63BThrikuEk/052ZGOly6zUEhJatwKD6wYGUHboerUuIUcNupsJXUPeDxJEAf8RAFEr5LNHAYnt5L73eE2RPbrBGtw== X-Microsoft-Exchange-Diagnostics: 1;AM4PR0201MB1857;31:hYH60Q8XTAjHZuADP37IxKMJGTDPJT5w9LEdovp7x5+Gy82ydDpgjPamPm+xlHPKNBWESgrPCE3gtRRvw69Qd13ks0AkNMTTaWKhpGju3q/SF2bjmdpuArOBC6Sd13k12yvpf/IlxX8yzQl7jAByR8pVhiZ8WctGQkxER0f5jvY6dlECfx8uVxOPjf2wgdm4Tvi++cukvuhj8WFaOsRILqYOAtlYXX9CXmlZUJzf0Fn1rWuAh/CNKZPstWBSWPhLjWy2chZ63qbaziQxKIM9FyQk2RTbn2bHOV3q/xeonKo=;20:odhM0lgkBwtHQzqmgdIVvOfyU1wvMNr7gZVALTMp5A2uCqDE7tO6IiSRYf+hHMpW1MfBlF4RxejQncjtLTP9aBhWnBN9N9bh8MD7Ct5CCEDjdlVjApbFdhoDgNmj3FsYq3kybOdy8Cr84JXmy2BY8HZb9Y0KOcT+1YO1ltJAdyrwreNhkvY4he3MJPx90vi3vLBA/rl6FUNV+HlKAG+ZSY1QCdhAk54NQbtiY2oOnzaKCIPTvbADfqhZ7HnfmDBA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(250305191791016)(22074186197030); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148);SRVR:AM4PR0201MB1857;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0201MB1857; X-Microsoft-Exchange-Diagnostics: 1;AM4PR0201MB1857;4:fzqKOqjcPzJz78v6iset7wLRyvvkM1Flf6J0ynqsh3pGJHOG1ozHPW92N1rb+bekg3wGz/UeRgTL+N7BaqW70DLrLkGmGRpM5Nyqhmkh60o1S1yJt4X+Jpg4vNI28PsjF1w85CmuXua07cFTg7dGM/zWisT3m+BdiUJ6/1c2BXe2FLPg+vJyGGOfNUf5c/yDBw7X1yXiB/wbbeA5u+M0HRgAvh0MPt8wc7qGa5rMyy6gPLTsv+BcN0T5drMusAeAxQZanQHUD2jNJfqMH6q1YPm2dluI0jE+YgbC7Fizj019B35aRiiF/n1+qtkyq9yMu3Oqk9BCc4zSoV6w4ec6EKru2zJjxzJ96f834depR6UKKmKpP+AkBBOvGCv/9aNHxNGkrlUfD2OuUJzV7mzpkoiweWVOH0LDZ7WsuwZ4eqMIwPT1ab9zzJ7o7ktNiWLqLE47Wpl0NkqgJB3G0Zm3c815aF95tJuKKybOyTWZtwClFWMje4qGRCHOKnMhfcIdy9fPi/GNEHgbMO8fYTpwwS6bngIytNjPzzPNIh8s3AcNo+TdJApPbbKDFSnKJiF/OtzrIucbkvesIG1+IUPueZA/VZHpT6OCYI+vJ6TQL/xF1Bjd31TaCnT98CoMss4IgsyM+ETnLh675fvFKmgbgZ9hNPo3rbCAAl54j7Ehn9n0/M7Qc6JP9uirZGgKynwuTg/SIvZQIZHcZvSICiXmsL7UgeNKRxQudAu/YxcCFAG3zkdeyYHQSkB3MLemKj4W67dDMTObEnyq+iA6vabO6a4mIDD+9SnO2SC4btQu+2s= X-Forefront-PRVS: 02830F0362 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(39400400002)(39410400002)(39830400002)(39450400003)(377424004)(54534003)(50466002)(38730400002)(2906002)(23676002)(33646002)(64126003)(230700001)(4001350100001)(36756003)(305945005)(6116002)(7736002)(3846002)(6916009)(81166006)(25786009)(6666003)(90366009)(110136004)(47776003)(5890100001)(66066001)(77096006)(5660300001)(575784001)(53936002)(53946003)(42186005)(50986999)(6306002)(74482002)(54356999)(31686004)(31696002)(2351001)(8676002)(86362001)(6486002)(189998001)(83506001)(21314002)(473944003);DIR:OUT;SFP:1102;SCL:1;SRVR:AM4PR0201MB1857;H:[10.9.78.56];FPR:;SPF:None;MLV:nov;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTRQUjAyMDFNQjE4NTc7MjM6YjYxc3RiVGNJU1BWS2UvSFJrOUQ3LzRp?= =?utf-8?B?QThWOVhyVXV3U3pDZlJVemxwdk1nOUcxbTRqd1lFOVh0N2lZMFhXZDhSdkdh?= =?utf-8?B?bjlHcjQ5NmVadzJYRExpSWRROUVwQ3V1QUI0SDNCK3FwaHVtcXA1VmxvWDNr?= =?utf-8?B?Y3lPeEYwVXdFMHc0WmE4dWtDbStHQm42Q20yVFd3NVBLemQ4V3ZNNkYvSXZh?= =?utf-8?B?ZU5teGhlaFZabEdaczBETG9wbmw5aGJSQkdqWW45U01BRkZnS0dPL3k0S2Ny?= =?utf-8?B?MzNYa1NUcHVsM1crQ0tXaDdGKzBreTlwUCttNStGRmtCS3JQM0NaMHVqczNT?= =?utf-8?B?Wlh1SG1hcFRmdEwwWFNJUm91ejFZNmpsNTYxeTU0M251UmZCTkxxUU41S2hm?= =?utf-8?B?ZEREK04vT1JzdUlvYU5zUWJ6Yng1aUNjYVFOS1YzbnFkKzN2eXpTaUJoVnpj?= =?utf-8?B?eGpTaHExcE9RUXZjOGR6UUQ3bzIxUlpuTkFpSVhwVzRidXRsTklYWFc5ZklK?= =?utf-8?B?di9KaUp5ZDFOTG5UZVd6Tmxtcyt0WXpLbGJpY01uSXo5c0FFWFpIK1B6TnM4?= =?utf-8?B?bk1aZ0VGTEc0eEhvU3RvS3pHUUtlUk9nTVJhdkl4dWphUUFXRCsxMTVZelg5?= =?utf-8?B?TDBHSFAwaFU2dG92enBuTHpTRHZ1NzVRelVQUHVPb2h1ODlFeGxwOVNocnNi?= =?utf-8?B?dVVIV01LRlBaZUVKdVFzVEhyRDkyeHBTbWFETUlLSDF3enZlZmJDNnlLelVQ?= =?utf-8?B?UmhLUXpyZGFnRlQ4MVJsNk9vTmJkL1MrSHpxWUp4TGtvUVNxVDlpczRabzI4?= =?utf-8?B?UFhSb0cyczhIZVFxOC91UElLN3pYVHB4VFM5R1U2MXVkcTByd0VjZzhQcGtM?= =?utf-8?B?aEhoRytTR3o0UnRjOTlyUnB0SEtsNWkxTGs3QVRuTlkwNW9KeWwvbUE3b1lF?= =?utf-8?B?OUxCZWtLLzJEWUJMSU9QY3VpY2Y4cmVkQk1WWDYrTlpMd3pEUHNSSkdtWW5M?= =?utf-8?B?WXhOTCt4S05iZTIvV3NXakZEUHBHT0IyTlRUWjQ2MnhTQ3hXdDJJZ1lvSHdF?= =?utf-8?B?RVZkVUlQcFpHYWhQbFVwNXNRcFFSTEIwdGpWdWM5cXlxYlRocDg1V1psUUlj?= =?utf-8?B?NjVESHVOT2tkSUJqaStXZXNodGZ5amJKOXJDbmpVaGdSY0ZBdm4xbkRYM1Z6?= =?utf-8?B?MXY5dFJnM1JYSEFVM0FYRFpQSzd3WmtndTVtdUZsYjNzdjNRK3UyeG9iMzNt?= =?utf-8?B?YnRwWmRiUlI3VXEyMzhiTlNiVk8zcmhGTi9zUlVzMFkxY0Njc05KcnNCcHI5?= =?utf-8?B?VlFvVnJxR1hNM2NJd3ljT0NjZi91REZLMVBFd3I4ZmRHZ0o5U294Y09KRWxE?= =?utf-8?B?Yk14eVJnUFJJcFdkQm9tMDVlVHNEcnVmRFFSVGRzZG1CLzdvWjZZOHdDMFVC?= =?utf-8?B?YStsdWJZcGkrYXJrT0w5ZDhOL0NvOHo1MEgwSUp6cWRkejExTDJBcEZiYmxC?= =?utf-8?B?a05lRDFmaVo4YVV3azh5S0lnelpvMnplSlNtWVBjcDRHWHN4WE1FdzArSzlQ?= =?utf-8?B?b25aSGYzS2FjY1g5eDNBSTloa1pTTDBYVFdTNXZPTWlvb252Ymh5SU5aRG5r?= =?utf-8?B?SGUzRjVaZ1pNTUsyNENpaS9IRTVXQ1o5Tk5HNHp6WmJqdnkwT1ltY2YzblJp?= =?utf-8?Q?4p6dgnRPN3h4wI8hUtXDgkM1Tr1xLLIvy59gUBT4W?= X-Microsoft-Exchange-Diagnostics: 1;AM4PR0201MB1857;6:P6Ir3lD6oOYzp+DYNAfOsBUlYLBoeeiIxksOLYL9J1UUvHTuB/kWG2WRpVfgH2zgHlTPTbrqkLxQcSHoZJt5SY+K6JneHFpBkdTnpcBbV1JvxQ6gBKfyZsV7fRXvuC9Pk8dc/Brsab/RlPlDbAIoA/2P5oU5n8Z5nyq4O3OzljW4yYKk9mdtyfk9zTr4ArWUguX0J0autL/C9rO/FmZub9p/yUWvZdCMskDI6YMK1WqZo35Zx8lZUgzpqYMElf3yMXxOempiYIy2CJrA6csYME26woaWgADnDHvWVbYY9QEy0mtwQBH0nLH8L6IhHWb8rCwuMLFoM0kUzoQHfXe+NDCDxf48yC3AnfqnOy98Zl/ixPjufNY18RncEXGxxJSSML7gHhGBFJJtAIjQfY9+8A7sx1OH488iCQWxU3JH+vqDR5knYkhhi/B8bbO3pKd5UntXAes3JOQ0hoqAwcCDkRZcu48+aw5kT32RtLfTAgubcH4ekEjtxDLFUu8VricZDN9nV6W9ZJ5EitM5Afcukg==;5:OI5W9No+R03g/Vh9KsCnwpqmzernl6ib1aRSNUlxRwV5yae9as5WKV2tMViMCbr1fU0reNfQ6MrbQWNKNgA6NWw1g0ej/MkIVte4SekdlaN06b0yJBgWY6QrAstj6iECzkmfAHhaVxovQllQGWnKsg==;24:FzeT9Gcvpq+E53nB5yfajspxXzUXYlUP/CFNaEPjW1575hUd4tpzlpojsl5Dwc/5Hi2dQlgZCCODepyWL4ptU4TGMUqKc1hHD0tJGnXxxMk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM4PR0201MB1857;7:tJhz8S5XAQNtnsue9EBk1OELiJJ3gLVSIjV83qxY58GqO90aKIq7hqMQXQicTXeJBqhgiMFjyjWSHCtw/z1V3eibfnZq490SsWo32KIIc8cnlwQ1HZXY306wooI7OMJxEWZELfk0FGZFks/+YHmORxB0FCMutzfXTs0hfHR5zEY7JEhhLSwWtWl5sjxoRNic1te9zCSHPZziZxVZEyvCw+5R5T67eZbqsJAhe8U1shVsY0LmbE36A1K/rC77yy8D6BWWncGb9Jm8sRIVjbvXFma6VIEdBoUZAiiewTSqkZVYBtcbIJG8Ry07BpAmQs9IXLKWrg5k7nE3BFwKCE6S6g== X-OriginatorOrg: qt.io X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2017 14:31:07.4453 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0201MB1857 X-SW-Source: 2017-q2/txt/msg00059.txt.bz2 config.h doesn't have include guards, so including it twice is bad. We deal with this by checking for PACKAGE_NAME, but only in some places. Once we start using gnulib, we will need to include config.h before any gnulib-generated headers. This is problematic if we include it transitively through our own private headers. In order to set a clear rule about inclusion of config.h, it is now included in every .c file as first header, but not in any header. This will definitely avoid double-inclusion and satisfy the condition that it has to be included before gnulib headers. It comes at the price of adding some redundancy, but there is no clean way to avoid this. Signed-off-by: Ulf Hermann --- lib/ChangeLog | 5 +++ lib/crc32.c | 4 ++ lib/system.h | 4 -- libdwfl/ChangeLog | 58 +++++++++++++++++++++++++++++ libdwfl/argp-std.c | 4 ++ libdwfl/cu.c | 4 ++ libdwfl/derelocate.c | 4 ++ libdwfl/dwfl_addrdie.c | 4 ++ libdwfl/dwfl_addrdwarf.c | 4 ++ libdwfl/dwfl_addrmodule.c | 4 ++ libdwfl/dwfl_begin.c | 4 ++ libdwfl/dwfl_build_id_find_debuginfo.c | 4 ++ libdwfl/dwfl_build_id_find_elf.c | 4 ++ libdwfl/dwfl_cumodule.c | 4 ++ libdwfl/dwfl_dwarf_line.c | 4 ++ libdwfl/dwfl_end.c | 4 ++ libdwfl/dwfl_frame.c | 4 ++ libdwfl/dwfl_frame_regs.c | 4 ++ libdwfl/dwfl_getdwarf.c | 4 ++ libdwfl/dwfl_getmodules.c | 4 ++ libdwfl/dwfl_getsrc.c | 4 ++ libdwfl/dwfl_getsrclines.c | 4 ++ libdwfl/dwfl_line_comp_dir.c | 4 ++ libdwfl/dwfl_linecu.c | 4 ++ libdwfl/dwfl_lineinfo.c | 4 ++ libdwfl/dwfl_linemodule.c | 4 ++ libdwfl/dwfl_module.c | 4 ++ libdwfl/dwfl_module_addrdie.c | 4 ++ libdwfl/dwfl_module_addrname.c | 4 ++ libdwfl/dwfl_module_addrsym.c | 4 ++ libdwfl/dwfl_module_build_id.c | 4 ++ libdwfl/dwfl_module_dwarf_cfi.c | 4 ++ libdwfl/dwfl_module_eh_cfi.c | 4 ++ libdwfl/dwfl_module_getdwarf.c | 4 ++ libdwfl/dwfl_module_getelf.c | 4 ++ libdwfl/dwfl_module_getsrc.c | 4 ++ libdwfl/dwfl_module_getsrc_file.c | 4 ++ libdwfl/dwfl_module_getsym.c | 4 ++ libdwfl/dwfl_module_info.c | 4 ++ libdwfl/dwfl_module_nextcu.c | 4 ++ libdwfl/dwfl_module_register_names.c | 4 ++ libdwfl/dwfl_module_report_build_id.c | 4 ++ libdwfl/dwfl_module_return_value_location.c | 4 ++ libdwfl/dwfl_nextcu.c | 4 ++ libdwfl/dwfl_onesrcline.c | 4 ++ libdwfl/dwfl_report_elf.c | 4 ++ libdwfl/dwfl_validate_address.c | 4 ++ libdwfl/dwfl_version.c | 4 ++ libdwfl/find-debuginfo.c | 4 ++ libdwfl/gzip.c | 4 ++ libdwfl/image-header.c | 4 ++ libdwfl/libdwflP.h | 3 -- libdwfl/lines.c | 4 ++ libdwfl/linux-core-attach.c | 4 ++ libdwfl/linux-pid-attach.c | 4 ++ libdwfl/linux-proc-maps.c | 4 ++ libdwfl/offline.c | 4 ++ libdwfl/open.c | 4 ++ libdwfl/relocate.c | 4 ++ libdwfl/segment.c | 4 ++ libelf/ChangeLog | 4 ++ libelf/libelfP.h | 4 -- 62 files changed, 291 insertions(+), 11 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 84290f7..8cac7af 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2017-04-20 Ulf Hermann + + * crc32.c: include config.h. + * system.h: Don't include config.h. + 2017-02-16 Ulf Hermann * Makefile.am (libeu_a_SOURCES): Remove version.c, add printversion.c diff --git a/lib/crc32.c b/lib/crc32.c index 1a76b1b..758602e 100644 --- a/lib/crc32.c +++ b/lib/crc32.c @@ -25,6 +25,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#if HAVE_CONFIG_H +#include +#endif + #include #include "system.h" diff --git a/lib/system.h b/lib/system.h index 2d05702..9203335 100644 --- a/lib/system.h +++ b/lib/system.h @@ -29,10 +29,6 @@ #ifndef LIB_SYSTEM_H #define LIB_SYSTEM_H 1 -#ifdef HAVE_CONFIG_H -# include -#endif - #include #include #include diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 80346d5..cddafe2 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,5 +1,63 @@ 2017-04-20 Ulf Hermann + * libdwflP.h: Don't include config.h. + * argp-std.c: Include config.h. + * cu.c: Likewise. + * derelocate.c: Likewise. + * dwfl_addrdie.c: Likewise. + * dwfl_addrdwarf.c: Likewise. + * dwfl_addrmodule.c: Likewise. + * dwfl_begin.c: Likewise. + * dwfl_build_id_find_debuginfo.c: Likewise. + * dwfl_build_id_find_elf.c: Likewise. + * dwfl_cumodule.c: Likewise. + * dwfl_dwarf_line.c: Likewise. + * dwfl_end.c: Likewise. + * dwfl_frame.c: Likewise. + * dwfl_frame_regs.c: Likewise. + * dwfl_getdwarf.c: Likewise. + * dwfl_getmodules.c: Likewise. + * dwfl_getsrc.c: Likewise. + * dwfl_getsrclines.c: Likewise. + * dwfl_line_comp_dir.c: Likewise. + * dwfl_linecu.c: Likewise. + * dwfl_lineinfo.c: Likewise. + * dwfl_linemodule.c: Likewise. + * dwfl_module.c: Likewise. + * dwfl_module_addrdie.c: Likewise. + * dwfl_module_addrname.c: Likewise. + * dwfl_module_addrsym.c: Likewise. + * dwfl_module_build_id.c: Likewise. + * dwfl_module_dwarf_cfi.c: Likewise. + * dwfl_module_eh_cfi.c: Likewise. + * dwfl_module_getdarf.c: Likewise. + * dwfl_module_getelf.c: Likewise. + * dwfl_module_getsrc.c: Likewise. + * dwfl_module_getsrc_file.c: Likewise. + * dwfl_module_getsym.c: Likewise. + * dwfl_module_info.c: Likewise. + * dwfl_module_nextcu.c: Likewise. + * dwfl_module_register_names.c: Likewise. + * dwfl_module_report_build_id.c: Likewise. + * dwfl_module_return_value_location.c: Likewise. + * dwfl_nextcu.c: Likewise. + * dwfl_onesrcline.c: Likewise. + * dwfl_report_elf.c: Likewise. + * dwfl_validate_address.c: Likewise. + * dwfl_version.c: Likewise. + * find-debuginfo.c: Likewise. + * gzip.c: Likewise. + * image-header.c: Likewise. + * lines.c: Likewise. + * linux-core-attach.c: Likewise. + * linux-pid-attach.c: Likewise. + * offline.c: Likewise. + * open.c: Likewise. + * relocate.c: Likewise. + * segment.c: Likewise. + +2017-04-20 Ulf Hermann + * linux-kernel-modules.c: Always return NULL from kernel_release() on non-linux systems. diff --git a/libdwfl/argp-std.c b/libdwfl/argp-std.c index 501530a..347a05b 100644 --- a/libdwfl/argp-std.c +++ b/libdwfl/argp-std.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include diff --git a/libdwfl/cu.c b/libdwfl/cu.c index 5182054..7aa23b5 100644 --- a/libdwfl/cu.c +++ b/libdwfl/cu.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/libdwP.h" #include "../libdw/memory-access.h" diff --git a/libdwfl/derelocate.c b/libdwfl/derelocate.c index 439a24e..e5c3e12 100644 --- a/libdwfl/derelocate.c +++ b/libdwfl/derelocate.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" struct dwfl_relocation diff --git a/libdwfl/dwfl_addrdie.c b/libdwfl/dwfl_addrdie.c index 1e9b3ab..c5b1d68 100644 --- a/libdwfl/dwfl_addrdie.c +++ b/libdwfl/dwfl_addrdie.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwarf_Die * diff --git a/libdwfl/dwfl_addrdwarf.c b/libdwfl/dwfl_addrdwarf.c index ba412ec..4f9efab 100644 --- a/libdwfl/dwfl_addrdwarf.c +++ b/libdwfl/dwfl_addrdwarf.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwarf * diff --git a/libdwfl/dwfl_addrmodule.c b/libdwfl/dwfl_addrmodule.c index 9234eb7..abf1ff4 100644 --- a/libdwfl/dwfl_addrmodule.c +++ b/libdwfl/dwfl_addrmodule.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwfl_Module * diff --git a/libdwfl/dwfl_begin.c b/libdwfl/dwfl_begin.c index 44c16a9..b03f5cf 100644 --- a/libdwfl/dwfl_begin.c +++ b/libdwfl/dwfl_begin.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwfl * diff --git a/libdwfl/dwfl_build_id_find_debuginfo.c b/libdwfl/dwfl_build_id_find_debuginfo.c index f1c64bc..273e5e5 100644 --- a/libdwfl/dwfl_build_id_find_debuginfo.c +++ b/libdwfl/dwfl_build_id_find_debuginfo.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include diff --git a/libdwfl/dwfl_build_id_find_elf.c b/libdwfl/dwfl_build_id_find_elf.c index d4737c9..ee0c164 100644 --- a/libdwfl/dwfl_build_id_find_elf.c +++ b/libdwfl/dwfl_build_id_find_elf.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include diff --git a/libdwfl/dwfl_cumodule.c b/libdwfl/dwfl_cumodule.c index c5cf004..2b593f2 100644 --- a/libdwfl/dwfl_cumodule.c +++ b/libdwfl/dwfl_cumodule.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwfl_Module * diff --git a/libdwfl/dwfl_dwarf_line.c b/libdwfl/dwfl_dwarf_line.c index e96f859..e22e984 100644 --- a/libdwfl/dwfl_dwarf_line.c +++ b/libdwfl/dwfl_dwarf_line.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/libdwP.h" diff --git a/libdwfl/dwfl_end.c b/libdwfl/dwfl_end.c index 0b35bd2..74ee9e0 100644 --- a/libdwfl/dwfl_end.c +++ b/libdwfl/dwfl_end.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include diff --git a/libdwfl/dwfl_frame.c b/libdwfl/dwfl_frame.c index 1dc0c8d..881f735 100644 --- a/libdwfl/dwfl_frame.c +++ b/libdwfl/dwfl_frame.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include diff --git a/libdwfl/dwfl_frame_regs.c b/libdwfl/dwfl_frame_regs.c index 10803fe..83b1abe 100644 --- a/libdwfl/dwfl_frame_regs.c +++ b/libdwfl/dwfl_frame_regs.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" bool diff --git a/libdwfl/dwfl_getdwarf.c b/libdwfl/dwfl_getdwarf.c index 8d1d9ba..edd088e 100644 --- a/libdwfl/dwfl_getdwarf.c +++ b/libdwfl/dwfl_getdwarf.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" struct module_callback_info diff --git a/libdwfl/dwfl_getmodules.c b/libdwfl/dwfl_getmodules.c index eed9b4f..243cb04 100644 --- a/libdwfl/dwfl_getmodules.c +++ b/libdwfl/dwfl_getmodules.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" ptrdiff_t diff --git a/libdwfl/dwfl_getsrc.c b/libdwfl/dwfl_getsrc.c index 8d4ae02..d853aed 100644 --- a/libdwfl/dwfl_getsrc.c +++ b/libdwfl/dwfl_getsrc.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwfl_Line * diff --git a/libdwfl/dwfl_getsrclines.c b/libdwfl/dwfl_getsrclines.c index bdfcf5c..1ce78fc 100644 --- a/libdwfl/dwfl_getsrclines.c +++ b/libdwfl/dwfl_getsrclines.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" int diff --git a/libdwfl/dwfl_line_comp_dir.c b/libdwfl/dwfl_line_comp_dir.c index bda09c4..77c3fdf 100644 --- a/libdwfl/dwfl_line_comp_dir.c +++ b/libdwfl/dwfl_line_comp_dir.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include diff --git a/libdwfl/dwfl_linecu.c b/libdwfl/dwfl_linecu.c index ce78d29..2043b17 100644 --- a/libdwfl/dwfl_linecu.c +++ b/libdwfl/dwfl_linecu.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #undef dwfl_linecu diff --git a/libdwfl/dwfl_lineinfo.c b/libdwfl/dwfl_lineinfo.c index 7ddbfb0..9618712 100644 --- a/libdwfl/dwfl_lineinfo.c +++ b/libdwfl/dwfl_lineinfo.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/libdwP.h" diff --git a/libdwfl/dwfl_linemodule.c b/libdwfl/dwfl_linemodule.c index e4a35e0..d243f0d 100644 --- a/libdwfl/dwfl_linemodule.c +++ b/libdwfl/dwfl_linemodule.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwfl_Module * diff --git a/libdwfl/dwfl_module.c b/libdwfl/dwfl_module.c index 515092f..510bd69 100644 --- a/libdwfl/dwfl_module.c +++ b/libdwfl/dwfl_module.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/cfi.h" #include diff --git a/libdwfl/dwfl_module_addrdie.c b/libdwfl/dwfl_module_addrdie.c index 20d2842..b44ec13 100644 --- a/libdwfl/dwfl_module_addrdie.c +++ b/libdwfl/dwfl_module_addrdie.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwarf_Die * diff --git a/libdwfl/dwfl_module_addrname.c b/libdwfl/dwfl_module_addrname.c index 88a8139..3142b3e 100644 --- a/libdwfl/dwfl_module_addrname.c +++ b/libdwfl/dwfl_module_addrname.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" const char * diff --git a/libdwfl/dwfl_module_addrsym.c b/libdwfl/dwfl_module_addrsym.c index 5a7bf71..db302e6 100644 --- a/libdwfl/dwfl_module_addrsym.c +++ b/libdwfl/dwfl_module_addrsym.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" struct search_state diff --git a/libdwfl/dwfl_module_build_id.c b/libdwfl/dwfl_module_build_id.c index c9a42ca..6ca9376 100644 --- a/libdwfl/dwfl_module_build_id.c +++ b/libdwfl/dwfl_module_build_id.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" static int diff --git a/libdwfl/dwfl_module_dwarf_cfi.c b/libdwfl/dwfl_module_dwarf_cfi.c index 1dac26d..0e5b435 100644 --- a/libdwfl/dwfl_module_dwarf_cfi.c +++ b/libdwfl/dwfl_module_dwarf_cfi.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/cfi.h" diff --git a/libdwfl/dwfl_module_eh_cfi.c b/libdwfl/dwfl_module_eh_cfi.c index dbe43b0..c296e39 100644 --- a/libdwfl/dwfl_module_eh_cfi.c +++ b/libdwfl/dwfl_module_eh_cfi.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/cfi.h" diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c index c8b839d..9775ace 100644 --- a/libdwfl/dwfl_module_getdwarf.c +++ b/libdwfl/dwfl_module_getdwarf.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include diff --git a/libdwfl/dwfl_module_getelf.c b/libdwfl/dwfl_module_getelf.c index f20fb04..6358de4 100644 --- a/libdwfl/dwfl_module_getelf.c +++ b/libdwfl/dwfl_module_getelf.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Elf * diff --git a/libdwfl/dwfl_module_getsrc.c b/libdwfl/dwfl_module_getsrc.c index f7e340b..fc99b16 100644 --- a/libdwfl/dwfl_module_getsrc.c +++ b/libdwfl/dwfl_module_getsrc.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/libdwP.h" diff --git a/libdwfl/dwfl_module_getsrc_file.c b/libdwfl/dwfl_module_getsrc_file.c index 4eaaeaf..cea2ba4 100644 --- a/libdwfl/dwfl_module_getsrc_file.c +++ b/libdwfl/dwfl_module_getsrc_file.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/libdwP.h" diff --git a/libdwfl/dwfl_module_getsym.c b/libdwfl/dwfl_module_getsym.c index 42d2b67..8de9a3e 100644 --- a/libdwfl/dwfl_module_getsym.c +++ b/libdwfl/dwfl_module_getsym.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" const char * diff --git a/libdwfl/dwfl_module_info.c b/libdwfl/dwfl_module_info.c index df16be4..af1faab 100644 --- a/libdwfl/dwfl_module_info.c +++ b/libdwfl/dwfl_module_info.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" const char * diff --git a/libdwfl/dwfl_module_nextcu.c b/libdwfl/dwfl_module_nextcu.c index 6f81f4c..32ee6bc 100644 --- a/libdwfl/dwfl_module_nextcu.c +++ b/libdwfl/dwfl_module_nextcu.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwarf_Die * diff --git a/libdwfl/dwfl_module_register_names.c b/libdwfl/dwfl_module_register_names.c index 18fed37..9ea0937 100644 --- a/libdwfl/dwfl_module_register_names.c +++ b/libdwfl/dwfl_module_register_names.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" diff --git a/libdwfl/dwfl_module_report_build_id.c b/libdwfl/dwfl_module_report_build_id.c index b41512b..31e17c8 100644 --- a/libdwfl/dwfl_module_report_build_id.c +++ b/libdwfl/dwfl_module_report_build_id.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" // XXX vs report changed module: punting old file diff --git a/libdwfl/dwfl_module_return_value_location.c b/libdwfl/dwfl_module_return_value_location.c index 29da61f..ff6f56f 100644 --- a/libdwfl/dwfl_module_return_value_location.c +++ b/libdwfl/dwfl_module_return_value_location.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" diff --git a/libdwfl/dwfl_nextcu.c b/libdwfl/dwfl_nextcu.c index 9ea8388..64bd521 100644 --- a/libdwfl/dwfl_nextcu.c +++ b/libdwfl/dwfl_nextcu.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwarf_Die * diff --git a/libdwfl/dwfl_onesrcline.c b/libdwfl/dwfl_onesrcline.c index 4c20d65..b1e7055 100644 --- a/libdwfl/dwfl_onesrcline.c +++ b/libdwfl/dwfl_onesrcline.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" Dwfl_Line * diff --git a/libdwfl/dwfl_report_elf.c b/libdwfl/dwfl_report_elf.c index 73a5511..6950a37 100644 --- a/libdwfl/dwfl_report_elf.c +++ b/libdwfl/dwfl_report_elf.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include diff --git a/libdwfl/dwfl_validate_address.c b/libdwfl/dwfl_validate_address.c index 7334c3e..15e2602 100644 --- a/libdwfl/dwfl_validate_address.c +++ b/libdwfl/dwfl_validate_address.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" int diff --git a/libdwfl/dwfl_version.c b/libdwfl/dwfl_version.c index d1c5d91..c27d4f6 100644 --- a/libdwfl/dwfl_version.c +++ b/libdwfl/dwfl_version.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" const char * diff --git a/libdwfl/find-debuginfo.c b/libdwfl/find-debuginfo.c index 80515db..6d5a42a 100644 --- a/libdwfl/find-debuginfo.c +++ b/libdwfl/find-debuginfo.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include diff --git a/libdwfl/gzip.c b/libdwfl/gzip.c index 078e1da..c2c13ba 100644 --- a/libdwfl/gzip.c +++ b/libdwfl/gzip.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "system.h" diff --git a/libdwfl/image-header.c b/libdwfl/image-header.c index 62ccc3e..25fbfd9 100644 --- a/libdwfl/image-header.c +++ b/libdwfl/image-header.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "system.h" diff --git a/libdwfl/libdwflP.h b/libdwfl/libdwflP.h index 2a83646..7d5f795 100644 --- a/libdwfl/libdwflP.h +++ b/libdwfl/libdwflP.h @@ -29,9 +29,6 @@ #ifndef _LIBDWFLP_H #define _LIBDWFLP_H 1 -#ifndef PACKAGE_NAME -# include -#endif #include #include #include diff --git a/libdwfl/lines.c b/libdwfl/lines.c index 721e29c..128c0c9 100644 --- a/libdwfl/lines.c +++ b/libdwfl/lines.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include "../libdw/libdwP.h" diff --git a/libdwfl/linux-core-attach.c b/libdwfl/linux-core-attach.c index f82ed03..9f05f72 100644 --- a/libdwfl/linux-core-attach.c +++ b/libdwfl/linux-core-attach.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include "system.h" diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c index 398df96..e6a5c41 100644 --- a/libdwfl/linux-pid-attach.c +++ b/libdwfl/linux-pid-attach.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libelfP.h" #include "libdwflP.h" #include diff --git a/libdwfl/linux-proc-maps.c b/libdwfl/linux-proc-maps.c index 094dd53..c4438c0 100644 --- a/libdwfl/linux-proc-maps.c +++ b/libdwfl/linux-proc-maps.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include diff --git a/libdwfl/offline.c b/libdwfl/offline.c index c0a2599..80c80a1 100644 --- a/libdwfl/offline.c +++ b/libdwfl/offline.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" #include #include diff --git a/libdwfl/open.c b/libdwfl/open.c index 92f2798..4e0461b 100644 --- a/libdwfl/open.c +++ b/libdwfl/open.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "../libelf/libelfP.h" #undef _ #include "libdwflP.h" diff --git a/libdwfl/relocate.c b/libdwfl/relocate.c index a44126e..1768243 100644 --- a/libdwfl/relocate.c +++ b/libdwfl/relocate.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" typedef uint8_t GElf_Byte; diff --git a/libdwfl/segment.c b/libdwfl/segment.c index 2983cf2..d9599a7 100644 --- a/libdwfl/segment.c +++ b/libdwfl/segment.c @@ -26,6 +26,10 @@ the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "libdwflP.h" GElf_Addr diff --git a/libelf/ChangeLog b/libelf/ChangeLog index e32590a..fa768f8 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,5 +1,9 @@ 2017-04-20 Ulf Hermann + * libelfP.h: Don't include config.h. + +2017-04-20 Ulf Hermann + * elf_begin.c: Use F_GETFD rather than F_GETFL. 2017-04-20 Ulf Hermann diff --git a/libelf/libelfP.h b/libelf/libelfP.h index 4459982..7ee6625 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -30,10 +30,6 @@ #ifndef _LIBELFP_H #define _LIBELFP_H 1 -#ifdef HAVE_CONFIG_H -# include -#endif - #include #include -- 2.1.4