forked from flashrom/flashrom
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libpci: drop support for pciutils < 2.2.0
This version was released in september 2005 and had a breaking api change. Drop it so that we don't need to maintain the old codepath any longer. Beside that, we have already a second codepath which is using the new `pci_get_dev` variant exclusively. Change-Id: If943db350b561a005d8292a53d9255223db3d571 Signed-off-by: Thomas Heijligen <[email protected]> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73293 Tested-by: build bot (Jenkins) <[email protected]> Reviewed-by: Anastasia Klimchuk <[email protected]> Reviewed-by: Angel Pons <[email protected]>
- Loading branch information
Showing
5 changed files
with
16 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
/* | ||
* This is a wrapper for libpci. | ||
* ... | ||
* This file is part of the flashrom project. | ||
* | ||
* Copyright (C) 2022 secunet Security Networks AG | ||
* (written by Thomas Heijligen <[email protected]) | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
|
||
|
||
#ifndef __PLATFORM_PCI_H__ | ||
#define __PLATFORM_PCI_H__ | ||
|
||
/* | ||
* An old libpci version seems to use the variable name "index" which triggers | ||
* shadowing warnings on systems which have the index() function in a default | ||
* #include or as builtin. | ||
*/ | ||
#define index shadow_workaround_index | ||
|
||
/* Some NetBSDs are using an other include path for pci.h | ||
* e.g. NetBSD 9.0 on sparc64 pciutils-3.7.0nb2. | ||
* Other NetBSD platforms and versions uses the default path under pci/pci.h | ||
|
@@ -24,6 +28,4 @@ | |
#include <pci/pci.h> | ||
#endif | ||
|
||
#undef index | ||
|
||
#endif /* __PLATFORM_PCI_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters