]> mj.ucw.cz Git - pciutils.git/blobdiff - pciutils.h
libpci: hwdb: Remove ID_SUBSYSTEM and ID_GEN_SUBSYSTEM usage from pci_id_hwdb_lookup()
[pciutils.git] / pciutils.h
index 95c26e64f3d00e19c8b5424e65f3fd4112c3a290..020c02a1c668f92a6c7dd4761f5e61b0637680b4 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "lib/pci.h"
 #include "lib/sysdep.h"
+#include "bitops.h"
 
 /*
  * gcc predefines macro __MINGW32__ for all MinGW targets.
 /*
  * On Windows only MinGW 3.0 and higher versions provides <getopt.h>
  * header file. Older MinGW versions and MSVC do not have it.
+ * DJGPP does not provide <getopt.h>.
  */
-#if defined(PCI_OS_WINDOWS) && !(defined(__MINGW32_MAJOR_VERSION) && __MINGW32_MAJOR_VERSION >= 3)
+#if defined(PCI_OS_DJGPP) || (defined(PCI_OS_WINDOWS) && !(defined(__MINGW32_MAJOR_VERSION) && __MINGW32_MAJOR_VERSION >= 3))
 #include "compat/getopt.h"
 #else
-#include <unistd.h>
+#include <getopt.h>
 #endif
 
 #define PCIUTILS_VERSION PCILIB_VERSION