+#include <libsa/vers_rsrc.h>
+#endif /* not KERNEL */
+
+#ifndef KERNEL
+#define PRIV_EXT
+#else
+#define PRIV_EXT __private_extern__
+#endif /* not KERNEL */
+
+#define VERS_MAJOR_DIGITS (4)
+#define VERS_MINOR_DIGITS (2)
+#define VERS_REVISION_DIGITS (2)
+#define VERS_STAGE_DIGITS (1)
+#define VERS_STAGE_LEVEL_DIGITS (3)
+
+#define VERS_MAJOR_MULT (100000000)
+#define VERS_MINOR_MULT (1000000)
+#define VERS_REVISION_MULT (10000)
+#define VERS_STAGE_MULT (1000)
+
+typedef enum {
+ VERS_invalid = 0,
+ VERS_development = 1,
+ VERS_alpha = 3,
+ VERS_beta = 5,
+ VERS_candidate = 7,
+ VERS_release = 9,
+} VERS_stage;
+
+
+static int __vers_isdigit(char c) {