Previously, the STAP_SDT_V2 -> V1 downgrade logic was half way down in the
header file, by which time some STAP_SDT_V2 definitions had already taken
effect.
* includes/sys/sdt.h: Make work on PPC et al.
#include <sys/types.h>
#include <errno.h>
+
+/* The asm operand string stap_sdt_probe_entry_v2.arg_string
+ is currently only supported for x86 */
+#if ! defined __x86_64__ && ! defined __i386__
+#define STAP_SDT_V1 1
+#undef STAP_SDT_V2
+#endif
+
+
typedef struct
{
__extension__ struct
#endif
-/* The asm operand string stap_sdt_probe_entry_v2.arg_string
- is currently only supported for x86 */
-#if ! defined __x86_64__ && ! defined __i386__
-#define STAP_SDT_V1 1
-#endif
-
#if defined __x86_64__ || defined __i386__ || defined __powerpc__ || defined __arm__ || defined __sparc__
#define STAP_NOP "\tnop "
#else