I'm relatively sure this code does not compile with djgpp
diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index 22549d7..ad9dc08 100644
--- a/poppler/Stream.cc
+++ b/poppler/Stream.cc
@@ -87,10 +87,6 @@
 #    include "JPXStream.h"
 #endif
 
-#ifdef __DJGPP__
-static bool setDJSYSFLAGS = false;
-#endif
-
 //------------------------------------------------------------------------
 // Stream (base class)
 //------------------------------------------------------------------------