]> mj.ucw.cz Git - pciutils.git/blobdiff - pciutils.h
pcilmr: Fix compilation for windows and djgpp
[pciutils.git] / pciutils.h
index 53e0ee1b1c4db34ef06aedc13ca05b75e65bb925..020c02a1c668f92a6c7dd4761f5e61b0637680b4 100644 (file)
@@ -24,8 +24,9 @@
 /*
  * 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 <getopt.h>