Index: OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
===================================================================
--- OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp (revision 10496)
+++ OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp (revision 10963)
@@ -70,4 +70,12 @@
 
 static int jpegerror = ERR_NO_ERROR;
+
+/* Some versions of jmorecfg.h define boolean, some don't...
+   Those that do also define HAVE_BOOLEAN, so we can guard using that. */
+#ifndef HAVE_BOOLEAN
+  typedef int boolean;
+  #define FALSE 0
+  #define TRUE 1
+#endif
 
 /* CODE FOR READING/WRITING JPEG FROM STREAMS
