Skip to content

Commit

Permalink
Fix: define PCI_STD_NUM_BARS when not found
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
  • Loading branch information
Tim Whisonant committed Dec 14, 2023
1 parent 5307b57 commit 7c4f658
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/plugins/uio/dfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#include <time.h>
#include <sys/pci.h>

#ifndef PCI_STD_NUM_BARS
#define PCI_STD_NUM_BARS 6
#endif // PCI_STD_NUM_BARS

#include "opae_int.h"
#include "opae_uio.h"
#include "dfl.h"
Expand Down
4 changes: 4 additions & 0 deletions libraries/plugins/vfio/dfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#include <time.h>
#include <sys/pci.h>

#ifndef PCI_STD_NUM_BARS
#define PCI_STD_NUM_BARS 6
#endif // PCI_STD_NUM_BARS

#include "opae_int.h"
#include "opae_vfio.h"
#include "dfl.h"
Expand Down

0 comments on commit 7c4f658

Please sign in to comment.