* xlat/scsi_sg_commands.in: Remove #stop.
* scsi.c: Wrap "xlat/scsi_sg_commands.h" inclusion in XLAT_MACROS_ONLY.
* tests/ioctl_scsi.c: Likewise.
* tests/ioctl_sg_io_v4.c: Likewise.
# include <scsi/sg.h>
#endif
-#include "xlat/scsi_sg_commands.h"
+#define XLAT_MACROS_ONLY
+# include "xlat/scsi_sg_commands.h"
+#undef XLAT_MACROS_ONLY
#include "xlat/sg_scsi_reset.h"
static int
# include <stdio.h>
# include <sys/ioctl.h>
# include <scsi/sg.h>
-# include "xlat/scsi_sg_commands.h"
+# define XLAT_MACROS_ONLY
+# include "xlat/scsi_sg_commands.h"
+# undef XLAT_MACROS_ONLY
# define TEST_NO_ARG(cmd) \
do { \
# include <sys/ioctl.h>
# include <sys/uio.h>
# include <linux/bsg.h>
-
-# include "xlat/scsi_sg_commands.h"
+# define XLAT_MACROS_ONLY
+# include "xlat/scsi_sg_commands.h"
+# undef XLAT_MACROS_ONLY
int
main(void)
SG_SET_KEEP_ORPHAN 0x2287
SG_GET_KEEP_ORPHAN 0x2288
SG_GET_ACCESS_COUNT 0x2289
-#stop