diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-25 10:11:07 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-25 10:17:55 -0700 |
commit | 8980a39004b10298a7db1f1b0b711a19e8b73aee (patch) | |
tree | e35516330f17b96f20293d6f018e7a1b81f7f345 | |
parent | cde74b51014053175497ac75cbaea10d6184ab57 (diff) |
Try fopen(".../pci.ids", "re") on Solarish systems as well
Oracle Solaris added support for "e" in the fopen() mode string in
Solaris 11.4.0 (released August 2018).
illumos (also covered under #ifdef __sun) added support for "e"
in 2013 (https://www.illumos.org/issues/3687).
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/common_device_name.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/common_device_name.c b/src/common_device_name.c index 4ca8cd1..912fc51 100644 --- a/src/common_device_name.c +++ b/src/common_device_name.c @@ -80,7 +80,6 @@ typedef FILE * pci_id_file; static pci_id_file pci_id_file_open(void) { -#ifndef __sun pci_id_file result; result = fopen(PCIIDS_PATH "/pci.ids", "re"); @@ -89,7 +88,6 @@ pci_id_file_open(void) #ifdef __FreeBSD__ return fopen("/usr/share/misc/pci_vendors", "re"); #endif -#endif return fopen(PCIIDS_PATH "/pci.ids", "r"); } |