/*
* 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>