V4L2Camera: adapt to Linux 2.6.32, fixes rawhide build fail
authorTim Niemueller <niemueller@kbsg.rwth-aachen.de>
Sun, 24 Jan 2010 22:07:50 +0000 (23:07 +0100)
committerTim Niemueller <niemueller@kbsg.rwth-aachen.de>
Sun, 24 Jan 2010 22:07:50 +0000 (23:07 +0100)
src/firevision/cams/v4l2.cpp

index f920a08..60bc6d7 100644 (file)
@@ -1874,6 +1874,11 @@ V4L2Camera::print_info()
         cout << "ctrl_class";
         break;
 #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
+      case V4L2_CTRL_TYPE_STRING:
+        cout << "string";
+        break;
+#endif
     }
     cout << ")" << endl;
 
@@ -1945,6 +1950,11 @@ V4L2Camera::print_info()
         cout << "ctrl_class";
         break;
 #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
+      case V4L2_CTRL_TYPE_STRING:
+        cout << "string";
+        break;
+#endif
     }
     cout << ")" << endl;